Using a Vector Lerp and Timeline to move an object to a specified position after spawn

Hello I am trying to create a projectile that an AI spawns after reaching a location which I have functioning. I am trying to use A Lerp with a Timeline to move the arrow from it’s spawning position to a manually specified position on the map. This movement isn’t intended to loop. It is merely supposed to spawn, move and If it collides with the player take damage (I haven’t created the damage variables yet that is simple enough with the hit event) Here is an example of my current blueprint.

sooo hey guy :slight_smile:

i made this in ue now and it works for me, it shoots every 5 seconds a ball towards the player( with homing effect, but you can easily outgo this by ur initial position and outgoing destination).

you have setted the float x,y,z variables but this dont work that way , if those are the fixed values simply put in those values in the make vector function and return them as B-vector for the Vlerp

THE IMPORTANT THING HERE:

connect the update from the timeline to a “Set world location” note , with the moving actor Root component as target and the lerp vector as new location .

your timeline should look like this :

because u lerp from 0 to 1 (0 % to 100%) over a specified time.

1 Like

if you need the same picture as you did, just let me know if you have problems with understanding how this works^^

i will do this again with ur exact bp :slight_smile: