User Tools

Site Tools


hpl2:amnesia:script_language_reference_and_guide:funcions_-_part_1

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
hpl2:amnesia:script_language_reference_and_guide:funcions_-_part_1 [2012/12/30 01:27]
thegreatcthulhu [Discussion]
hpl2:amnesia:script_language_reference_and_guide:funcions_-_part_1 [2012/12/30 01:35]
thegreatcthulhu
Line 177: Line 177:
 // are custom, and are omitted from this snippet. // are custom, and are omitted from this snippet.
 </​code>​ </​code>​
 +
 +<note tip>If you haven'​t read Part 2, ignore the strange "&​in"​ qualifiers for now.</​note>​
  
 Just by looking, you can tell, judging by the name OnCollideArea_DramaticEvent(),​ that this function is called when the Player collides with a specific script area, and that this function initiates some in-game dramatic event: first it takes control from the player, then it calls another function that animates the camera, and another to start music, and yet another to make the player loose all of the items. (Maybe the ground gave way, and the Player fell into a river! The exact details are not relevant, the important thing is that you can get a pretty good idea of what is the function supposed to do just by looking at it.) Just by looking, you can tell, judging by the name OnCollideArea_DramaticEvent(),​ that this function is called when the Player collides with a specific script area, and that this function initiates some in-game dramatic event: first it takes control from the player, then it calls another function that animates the camera, and another to start music, and yet another to make the player loose all of the items. (Maybe the ground gave way, and the Player fell into a river! The exact details are not relevant, the important thing is that you can get a pretty good idea of what is the function supposed to do just by looking at it.)
hpl2/amnesia/script_language_reference_and_guide/funcions_-_part_1.txt ยท Last modified: 2013/01/14 20:16 by thegreatcthulhu