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"

How to Make an Actor Get from A to a Customized Location B at a Certain Speed?

I understand that there are Timelines to smooth things out but I can`t seem to find a way to input a customized Length of time. If I can customize the Length of Timeline as an input variable, how to do it? Or perhaps there is a simpler solution to achieve making an actor go from a certain original location to a user customized location at a certain speed? Any help is appreciated. :)

Product Version: UE 4.21
more ▼

asked Nov 23 '18 at 10:34 AM in Blueprint Scripting

avatar image

47 4 3 8

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

2 answers: sort voted first

I'm not sure what struct pin you're referring to.

You should be able to get / set the values from the component reference, see below. alt text

I don't think you can set the play rate inside the timeline node, but you can certainly initialise the length.

If, when you say "struct pin" you're trying to split the "Direction" pin from the timeline node, it's an enum and you can drag off and type "Switch on [EnumName]" to get the information from it, but it's only Forwards and Backwards, not what you're looking for here.

timeline.png (54.5 kB)
more ▼

answered Nov 23 '18 at 02:11 PM

avatar image

260 2 4 7

avatar image ANoobyBird Nov 23 '18 at 03:42 PM

Oh, now I see. Thank you very much!

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

Hey, when you add a timeline node to your blueprint, Timeline_0 will appear under your variables section, under "Components"

You can drag this into your blueprint and set its length / play rate etc.

You can also use "Interp to" as a way to move an object continuously toward a goal - but you'll need something like an event tick, or timer to keep executing the SetLocation node. Looping timelines I find, stutter at each new reset.

Hope this helps!

more ▼

answered Nov 23 '18 at 10:49 AM

avatar image

260 2 4 7

avatar image ANoobyBird Nov 23 '18 at 01:20 PM

Thank you.

Actually I should have specified that I noticed a variable is created whenever I add a new timeline node, however I have found no way of splitting its struct pin and accessing its Length or Play Rate when Setting it up. Do I have to set it up with just another Timeline node or is there another way of accessing its Length and Play Rate?

(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