Triggering an event every X seconds?

I need to execute an event every X seconds, this value can and will change over time. So sometimes it might be every 0.1 seconds, sometimes every 20 seconds.

What would be the simplest way to do this?

You can use either a Timer or Delay would work too

https://docs.unrealengine.com/latest/INT/Gameplay/HowTo/UseTimers/Blueprints/index.html

Create a function with the mechanics that need to be called. Then use an event that calls a Set Timer node. With a Set Timer node you can set a function to run X times per seconds. You can use a Pause Timer, Stop Timer and a few others that I cant recall off my head. With that you can dynamically adjust how often your function gets called and adjust it at your leisure. I hope this helps!

1 Like

Sorry for the overlapping answer. Your answer wasn’t up yet as I was answering.

Alright, this is what I ended up using. Although not perfect, it’s good (and more importantly simple) enough for what I was looking for. Thanks!

can you accept the answer for tracking purposes if this has been resolved, thank you.