luaapi:px_tmrman
This is an old revision of the document!
Timer manager metatable functions
Function | Description |
---|---|
TmrMan.AddTimer(nTimerInterval) | Add new timer for script. nTimerInterval is in ms. Return nil when failed or uTimerId when success. |
TmrMan.AddTimer(nTimerInterval, sFunctionName) | Add new timer for script. nTimerInterval is in ms. sFunctionName is name of function called by this timer. Return nil when failed or uTimerId when success. |
TmrMan.AddTimer(nTimerInterval, fFunction) | Add new timer for script. nTimerInterval is in ms. fFunction is Lua 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.1384394198.txt.gz · Last modified: 14/11/2013 01:56 by ppk