void HookTimer(string funcname)
The specified function will be called every timer tick, 100 times per second.
The function name is passed as a string and the given function must be void and take no arguments. If the string passed does not resolve to a known function at run-time, no hooking will occur.
// Somewhere you hook this.
HookTimer("MyTimer");
// Increase a variable called mytimer every tick.
void MyTimer()
{
mytimer++;
}There are no talkbacks on this documentation page yet. Post the first?
Doc Nav |
![]() |
Your docs |
![]() |