Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

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!

alt text

Product Version: UE 4.17
capture.png (184.2 kB)
more ▼

asked Sep 29 '17 at 03:02 AM in Blueprint Scripting

avatar image

1 1 3 4

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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.

more ▼

answered Sep 29 '17 at 07:35 AM

avatar image

14.6k 76 25 61

avatar image Greywacke Sep 29 '17 at 08:28 AM

That's actually a really cool resource. Thanks for sharing!

avatar image Everynone Sep 29 '17 at 09:26 AM

If you ever manage to achieve what you need, please consider marking this issue as resolved. Otherwise, keep the questions coming.

avatar image MasterFuzzFuzz Nov 09 '17 at 12:05 AM

That couldn't have been less helpful. There's no BP in any part that shows how it all fits together

avatar image Everynone Nov 09 '17 at 08:13 AM

I disagree. It's a blog describing the concept behind it all, including dos and donts, not a tutorial and the entire material setup is in there which is 95% of the setup you need. The rest is a breeze by comparison.

If you do not want to use emitters, particles and cascade, you can achieve a very similar effect with a spline. Have a look at the link below; again, it's not step-by-step but should have enough details to get you started (look for a section with a blown out mesh image, somewhere in the middle):


(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question