Friday, 20 October 2017

Weapon mechanics

I first Started by creating three custom events for what i want to happen, pull trigger release and fire. From the pull trigger I added a DoOnce node that makes sure what ever happens only happens once, linked up to a Target Actor node selecting gun so it will fire from the gun, and then set timer to 1 divided by 7 as rounds per second however my code seems to only fire once in general so I am looking to fix it.

The first not is and event beginplay, so when the game starts its plays this piece of code. Its then hooked up to a sequence which allows me to add multiple beginning play codes but for no it only has one. The spawn actor makes it spawn in the world then i set it to spawn on a arrow component by the side of our character. the bit at the bottom is my basic shoot mechanic ive done where left clicking fire ive not figured how to make it semi-automatic as it is a Gatling gun.
For the material of the weapon i used a simple material changed it to addative so it only makes it look brighter, and for the coluor i had this of shade of green into a multiply with a param that changes the brightness of the colour.

No comments:

Post a Comment