Next revision | Previous revision 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:50] thegreatcthulhu |
||
---|---|---|---|
Line 29: | Line 29: | ||
<code c++>void OnEnter() | <code c++>void OnEnter() | ||
{ | { | ||
+ | // Note: The 3rd parameter is the callback function, defined below. | ||
AddTimer("internal.timer.id", 10.0f, "MyFunc"); | AddTimer("internal.timer.id", 10.0f, "MyFunc"); | ||
} | } | ||
Line 51: | Line 52: | ||
void OnEnter() | void OnEnter() | ||
{ | { | ||
- | AddTimer("internal.timer.id", 5.0f, "MyFunc"); | + | AddTimer("internal.timer.id", 5.0f, "MyFunc"); |
} | } | ||