How could I create weapon spread via a line trace?
Hey guys! I am creating a weapon shooting system that works via a line trace. I was wondering if there would be a way to add a little randomness to the line trace when my character is not zoomed in, a little like a weapon spread system, so my guns will be more accurate when I am zoomed in. Is there any way to do this? Any advice would be appreciated! Thanks so much!
asked Mar 22 '16 at 09:10 PM in Blueprint Scripting
Opps forgot it needed to be a line trace...here ya go this should do it:
Spread is separated into a Min and Max here but it is basically the same concept as above.
answered Mar 22 '16 at 10:08 PM
Try something like this:
This will spawn projectiles like a shotgun...Rounds Per Shot is how many will spawn at once and Projectile Spread is the Spread amount in degrees..Projectile Spawn Transform is where the projectiles should spawn (either the muzzle's transform or wherever you are wanting them to spawn).
answered Mar 22 '16 at 10:02 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here