luaapi:px_tmrman
This is an old revision of the document!
Timer manager metatable functions
Function | Description |
---|---|
TmrMan.AddTimer(iTimerInterval) | Add new timer for script. iTimerInterval is in ms. Return nil when failed or uTimerId when success. |
TmrMan.AddTimer(iTimerInterval, fFunction) | Add new timer for script. iTimerInterval is in ms. fFunction is Lua function called by this timer. Return nil when failed or uTimerId when success. |
TmrMan.AddTimer(iTimerInterval, sFunctionName) | Add new timer for script. iTimerInterval is in ms. sFunctionName is name of function called by this timer. Return nil when failed or uTimerId when success. |
TmrMan.RemoveTimer(uTimerId) | Remove timer with given ID from script. |
luaapi/px_tmrman.1403296420.txt.gz · Last modified: 20/06/2014 20:33 by ppk