HookTimer

HookTimer
void HookTimer(string funcname)

Documentation

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.

Example Usage

// Somewhere you hook this.
HookTimer("MyTimer");

// Increase a variable called mytimer every tick.
void MyTimer()
{
	mytimer++;
}
Talkback

There are no talkbacks on this documentation page yet. Post the first?

Post a new comment?

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.