TimerStart
From WarCraft3
Template:jass/common.j Template:common.j article series
native TimerStart takes timer whichTimer, real timeout, boolean periodic, code handlerFunc returns nothingConfused? Jass help forum!Starts a timer timer with a specified timeout and callback function.
Parameters
whichTimer
The timer to start. An already started timer will stop it's current countdown and start the new one instead.
timeout
The countdown time, this is the interval if the timer is reoccurring. A value of 0 works which means that the timer will be finishing in the shortest (non 0) time possible in wc3.
periodic
A flag indicating if the timer is periodic (reoccurring)
handlerFunc
A code reference to a function that will be executed when the timer finishes. The function should take and return nothing.