x

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"

Lightning arc effect with moving source/target possible?

I tried to alter the lightning arc in the effects example with no luck. Is a beam type data module with moving source/target even possible?

Product Version: Not Selected
Tags:
more ▼

asked Mar 11 '14 at 05:46 AM in Rendering

avatar image

ue4-archive ♦♦ STAFF
49.9k 3662 1986 9113

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Dear Christian,

Can you post what changes you made?

You'd have to turn the Beam Target into a Vector parameter,

and the update the target every tick to the desired location

here are several things to keep in mind, if modifying just the Target for example:

  • the target must be in world space, have to set it to this

  • the target vector parameter must have min and max of huge values, like -1000000 to 1000000 for x y and z

  • the target must be set to not being locked

the you give target parameter a name and set it every tick and you should be good to go :)

I've not tested this yet but if this is not enough to get you rolling I will just let me know

Rama

more ▼

answered Mar 11 '14 at 05:46 AM

avatar image

ue4-archive ♦♦ STAFF
49.9k 3662 1986 9113

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 05:46 AM

I can't get it to work, maybe you can give it a shot, would be awesome mate!

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 05:46 AM

I will work on this and let you know!

:)

Rama

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 05:46 AM

Download on Dropbox

oh I just realized I already am doing this,

I am updating a targeting beam every tick so that the end point hits terrain and stops,

so it involves tracing every tick and updating beam endpoint every tick :)

I uploaded my exact asset that I am using to drop box for you to check out!

 NathanLyer/ForChristian.rar

I migrated the contents, so it should be fully functional for you :)

C++

Here's the c++ I am using:

 //Set Beam End Location
 JoyTargetBeam->SetVectorParameter(
     FName("Target"), 
     NewFVectorLoc
 );

Rama

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 05:46 AM

Do I have to do anything special to make it work, how can I specify the target mesh/actor? Thanks for your effort!

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 05:46 AM

you should be able to just

  • spawn an instance of the ribbon in blueprints, make sure to set it to not automatically deleting itself upon completion

  • store a ref to this ribbon upon spawning, of type Particle System Component

  • use Vector Set Parameter of particles and set "Target" to the FVector location of your choice, with the Event Tick

So you might want to start by trying this in the Level Blueprint to make sure tick works :)

:)

alt text

avatar image MaxSMoke777 Apr 07 '15 at 08:28 AM

Is there any way you could explain what you did to make this work in Blueprints? I'd love to make a beam arc from my first person camera, to an object in-scene, but I'm having no luck. I don't see how it can be done at all.

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 05:46 AM

It works, thanks!!

(comments are locked)
10|2000 characters needed characters left
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