User Tools

Site Tools


hpl2:amnesia:script_language_reference_and_guide:execution_flow

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
hpl2:amnesia:script_language_reference_and_guide:execution_flow [2012/12/20 23:09]
thegreatcthulhu
hpl2:amnesia:script_language_reference_and_guide:execution_flow [2012/12/21 21:51]
thegreatcthulhu
Line 1: Line 1:
-====== Execution ​flow ======+====== Execution ​Flow ======
  
  
Line 17: Line 17:
   * OnLeave()   * OnLeave()
  
-A well-formed ​script file must have at least one of these functions implemented, although they can be empty (i.e. they do nothing). As the game runs, and a map is loaded, on these level events the control is handed over to the corresponding functions, and they are executed (see the image). By default, these 3 events are the only points in time where this happens.+Normally, a script file will have at least one of these functions implemented. As the game runs, and a map is loaded, on these level events the control is handed over to the corresponding functions, and they are executed (see the image). By default, these 3 events are the only points in time where this happens.
  
 {{ :​hpl2:​amnesia:​script_language_reference_and_guide:​exflow_img1.jpg?​nolink |}} {{ :​hpl2:​amnesia:​script_language_reference_and_guide:​exflow_img1.jpg?​nolink |}}
hpl2/amnesia/script_language_reference_and_guide/execution_flow.txt ยท Last modified: 2012/12/21 21:51 by thegreatcthulhu