User Tools

Site Tools


hpl2:amnesia:script_language_reference_and_guide:execution_flow

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
hpl2:amnesia:script_language_reference_and_guide:execution_flow [2012/12/20 19:49]
thegreatcthulhu
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()
 { {
-    // Note: The 3rd parameter is the callback function, defined below. 
     AddTimer("​internal.timer.id",​ 5.0f, "​MyFunc"​);  ​     AddTimer("​internal.timer.id",​ 5.0f, "​MyFunc"​);  ​
 } }
hpl2/amnesia/script_language_reference_and_guide/execution_flow.txt ยท Last modified: 2012/12/21 21:51 by thegreatcthulhu