EVENT PREGAME: Difference between revisions
Jump to navigation
Jump to search
Mblackwell (talk | contribs) mNo edit summary |
Hendricks266 (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
EVENT_PREGAME is a [[EDuke32 event list|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: | |||
#EVENT_PREGAME | |||
#hardcoded stuff | |||
#[[EVENT_GAME]] | |||
One potential use specifically for EVENT_PREGAME is to examine struct values which are clobbered by commands such as [[ifhitweapon]]/[[ifwasweapon]]. Otherwise, [[EVENT_GAME]] is generally sufficient. | |||
[[Category:Events]] |
Revision as of 16:46, 14 April 2013
EVENT_PREGAME 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:
- EVENT_PREGAME
- hardcoded stuff
- EVENT_GAME
One potential use specifically for EVENT_PREGAME is to examine struct values which are clobbered by commands such as ifhitweapon/ifwasweapon. Otherwise, EVENT_GAME is generally sufficient.