Want to only update player location every 15 seconds


Hi I’ve just started using Unreal. Even though I have no experience with coding or blueprints I thought this would be a simple ai to try and create, but I’m having trouble. I want my enemy to teleport to the position the character was in about 15 seconds ago, but I don’t know how to make the location update on an interval. Thanks for any help.

Hi @Goods_Oda,

Welcome to the Unreal Engine forums!

There are a few ways of doing this and you were on the right track.

Have a look at the Set Timer by Event blueprint node.

You could use that to set a timer for 15 second and set the players location, then called a delayed timer to update the enemies location.

It work as follows:

On BeginPlayer it would trigger, set the players location, and call the delayed “Teleport”.

After the time elapse, the Delayed function would call, and the a new Event would trigger.

Something like this:

Hope this helps. Let me know if you have any other questions.