Invalidate timer by event

Hello, Clear and invalidate timer handle doesn’t work for me and I can’t understand why

Everything I’ve tried to look up implies that when SetThreatLevel is called, the timer handle should be invalidated and the timer should stop, but it doesn’t, it just keeps going, and instead new timer(s) are created and start counting alongside the initial one.

Furthermore, all I’m trying to do is change the timer speed when a specific event is called. However, the timer speed seems to be set when the timer is created and all my attempts to make the speed change once it starts counting have failed.

I can’t understand what the problem is. Pause Timer Handle also doesn’t work.

You can’t just set the return value into the clear on another custom event. You need to set a variable and then invalidate the timer and clear the handle variable when you call set Threat level Level.
In this case, you’re passing an invalid handle into the Clear and Invalidate Timer by handle.

Privacy & Terms