Next revision Both sides next revision | |||
hpl2:amnesia:script_language_reference_and_guide:execution_flow [2012/12/20 19:31] thegreatcthulhu created |
hpl2:amnesia:script_language_reference_and_guide:execution_flow [2012/12/20 19:49] thegreatcthulhu |
||
---|---|---|---|
Line 51: | Line 51: | ||
void OnEnter() | void OnEnter() | ||
{ | { | ||
- | AddTimer("internal.timer.id", 5.0f, "MyFunc"); | + | // Note: The 3rd parameter is the callback function, defined below. |
+ | AddTimer("internal.timer.id", 5.0f, "MyFunc"); | ||
} | } | ||