Frictional Games Forum (read-only)
Repeat timer - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: Repeat timer (/thread-8678.html)



Repeat timer - X4anco - 06-18-2011

Hello peoples,

How could I get a timer to repeat?

-X4anco


RE: Repeat timer - DamnNoHtml - 06-18-2011

Just call the timer inside itself.

void TimerTest (string &in asTimer)
{
AddTimer("", 1.0, "TimerTest");
}


RE: Repeat timer - X4anco - 06-18-2011

How would I make it stop after so many times?


RE: Repeat timer - xiphirx - 06-18-2011

RemoveTimer() and a local variable?


RE: Repeat timer - X4anco - 06-18-2011

Ah thank-you Big Grin