EVENT GAME: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
One (talk | contribs)
No edit summary
No edit summary
Line 2: Line 2:


This [[event]] is triggered once per tic per sprite in the game.  The gamevar [[THISACTOR]] refers to the ID of the actor executing the code.  Thus, it takes the value of each actor in the game.
This [[event]] is triggered once per tic per sprite in the game.  The gamevar [[THISACTOR]] refers to the ID of the actor executing the code.  Thus, it takes the value of each actor in the game.
All sprites are processed in the following fashion:
#[[EVENT_PREGAME]]
#hardcoded stuff
#EVENT_GAME
EVENT_GAME is generally sufficient for coding needs but EVENT_PREGAME has some specific uses.


[[Category:Events]]
[[Category:Events]]

Revision as of 17:46, 14 April 2013

EVENT_GAME is a Game Event.

This event is triggered once per tic per sprite in the game. The gamevar THISACTOR refers to the ID of the actor executing the code. Thus, it takes the value of each actor in the game.

All sprites are processed in the following fashion:

  1. EVENT_PREGAME
  2. hardcoded stuff
  3. EVENT_GAME

EVENT_GAME is generally sufficient for coding needs but EVENT_PREGAME has some specific uses.