I create a timer that repeats with a specified quantity.
Will the timer destroy itself after the timer event has happened?
Posted: Thu Apr 22, 2004 1:16 pm
by ingsan
Hello !
The answer is no, the timer will not destroy itself after Event. Actually it will loop itself until you decide to destroy it.
So declare that AfterEvent > Destroy(YourTimer)
See you
Posted: Thu Apr 22, 2004 2:15 pm
by Just4Fun
ingsan's post seems correct to me. I believe that you need to destroy your timers after the event where they are no longer needed.
Posted: Thu Apr 22, 2004 6:05 pm
by ingsan
Yes, I encountered this same problem before.
Ex :
I have MainActor On DestroyActor, create TimerA On TimerA, create MainActor.
If you don't destroy TimerA, MainActor will be forever created after TimerA
Posted: Thu Apr 22, 2004 7:50 pm
by jazz_e_bob
But what if I have a timer that repeats only once?
I suppose it must stay in memory until destroyed by code...
Posted: Thu Apr 22, 2004 10:00 pm
by ingsan
You're right, a timer with specified quantity repeats only the specified time Ooops
Posted: Thu Apr 22, 2004 11:14 pm
by makslane
A timer with specified quantity repeats will be destroyed after the specified count