EVENT PREGAME: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Mblackwell (talk | contribs)
mNo edit summary
No edit summary
Line 1: Line 1:
''' ''this page is a stub'' '''
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:


All sprites are processed in the following fashion:
#EVENT_PREGAME
#hardcoded stuff
#[[EVENT_GAME]]


1. EVENT_PREGAME<br>
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.
2. hardcoded stuff<br>
3. EVENT_GAME<br>


One potential use is to examine values which are clobbered by commands such as [[ifhitweapon]]/[[ifwasweapon]].
[[Category:Events]]

Revision as of 17: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:

  1. EVENT_PREGAME
  2. hardcoded stuff
  3. 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.