Issue subtracting from timer variable with Set Time by Event node

This has to be something obvious I’m missing. I was testing to see if I could subtract 5 seconds from the variable “Package Time” (which is by default set to 10 seconds) every time it is ran. An object is spawned every 10 seconds but I’d like for them to spawn faster as time goes by. I decided to adjust the variable by subtracting 5 every time one is spawned just to see if it works. Realistically I’ll space out the timing much more. But adjusting the variable this way doesn’t seem to do anything, the objects keep spawning every 10 seconds. Any advice is appreciated.

Try and untick ‘looping’ on the timer node, then connect the execution pin from the end where you set the package time back to the set timer event node. You should add a check if package time is zero or negative in order to exit that loop.

1 Like

Thank you! I thought I had tried that method already but I must have left the looping box checked causing UE to freeze up on me. I’ve setup a branch to check when its zero to exit the loop and reset the timer for now. Thanks again!