ue4 line trace shotgun?
Is there a way to do this?
asked Mar 22 '15 at 06:04 PM in Blueprint Scripting
I just finished building this exact feature in my super comprehensive Gun class system. I stumbled across your post while looking up how to do it myself. Ended up having to design one.
(I may release my gun system on the Marketplace once it's more polished.)
Anyway, I have the solution.
It's pretty straightforward once you know what to do. I'll give you my blueprint method, and I'm sure you can figure out where to hook it in if you're dabbling in making guns fire already.
See attached image. Hope that helps!
Here is a way I found useful. The "Projectile Spawn Loc 2 Right" is just an Arrow component so I know where to start the trace (at the end of the barrel of my weapon).
You could add a variable called "SpreadAmount" and then drag that to the Min and Max pins of the Random Float in Range, just do Min * -1 to get the negative range.
answered Apr 07 '18 at 08:48 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here