Spawning my character at last known position

Hi!

Basically, my character fly around from platform to platform in a single “dash”, stoping only in the case of collision.
Everytime my character hits a platformer, I would like to store the last known location (Which would be get actor location). If my character goes too far, I would like to kill him and respawn him at last known position.

How would I do that in blueprint?
Thanks!

I guess it is possible to get the Player Movement Component. From the Return Value, you can find a function called “Is Moving On Ground”. This returns a boolean. Now i would check the bool every tick and only save the position when he’s on the ground. So if he jumps or dashs, the location won’t be saved again until he lands.

If you are using jumping then you could use the onJump and onLanded events to store it. May not work with your setup.