How to make a continuous beam weapon?
Hello. So I'm very new to UE4 and can't seem to find a tutorial for exactly what I'm looking for. I've already used a tutorial for a laser sight, however I only want the laser to appear while the trigger is being held down. I've tried using InputAction and a Gate to limit it but the laser still exists before I fire and then remains still in space once I let go. I have a picture of what the start of my blueprint looks like. Hopefully this isn't too complicated. Thanks for the help!
You can look into particle cascade; here is a great entry about making a beam weapon:
Another method that worked for me was a simple spline with 2 points. You're calculating the points already. Add spline mesh with a dynamic material instance and you've got a beam:
You will need to update it on tick if the target or the source is re-positioned.
Follow this question
Once you sign in you will be able to subscribe for any updates here