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"

Attaching Beam Points to Actors Dynamically in game

Hello, I'm trying to attach a beam between two actors as seen here. However, I want to do this during runtime (for complicated reasons) I don't want to use a set beam source/end point function because when changing the source point and the end point the beam lags behind. My attempt at connecting the laser to two actors is shown below. I believe this is the same way that this would be done in editor to attach the laser to two actors. (I have the source/target method set to actor and the source/target name do correspond with the names shown here) alt text

Product Version: UE 4.18
beam-point.png (117.5 kB)
more ▼

asked Apr 18 '19 at 05:11 AM in Blueprint Scripting

avatar image

13 5 6 7

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

1 answer: sort voted first


You can make beam by making beam emitter and material first as its made in here: https://wiki.unrealengine.com/Beam_Particle_(Tutorial)

If you have configured all correctly, you can use particle system method "SetBeamTargetPoint" and "SetBeamTargetPoint" like i have used in here:

alt text

beam.png (31.3 kB)
more ▼

answered Apr 18 '19 at 06:48 AM

avatar image

126 2 7 12

avatar image nogdoesrandomstuff Apr 18 '19 at 04:26 PM

Hi, I did originally have the beam set up like that. However, the beam lags where it should be in this gif here. I know from doing other things with beams that if the beam point is attached to an actor it stays exactly with the actor with no lagging.

alt text

beam-lag.gif (2.0 MB)
(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