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

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!

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. :slight_smile:

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?

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.

260253-timeline.png

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.

Oh, now I see. Thank you very much!