EVENT PRELEVEL: Difference between revisions
Jump to navigation
Jump to search
Created page with "EVENT_PRELEVEL is a Game Event. This event is similar to EVENT_ENTERLEVEL, however it's set before the player has been set. This event runs wh..." |
Doom64hunter (talk | contribs) mNo edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
EVENT_PRELEVEL is a [[EDuke32_event_list|Game Event]]. | {{EventTable|1=EVENT_PRELEVEL|2=-1|3=-1|4=0 values}} | ||
'''EVENT_PRELEVEL''' is a [[EDuke32_event_list|Game Event]]. | |||
This [[event]] is | This [[event]] is executed when the map is loaded, before event [[EVENT_ENTERLEVEL]]. | ||
It is placed at the very beginning of the engine's <code>prelevel()</code> function, after actor variables have been reset, but before any sector data is set up, before the player has been defined, before sprites are spawned, and before any [[EVENT_LOADACTOR]] is executed. | |||
You can use this event to initialize gamevars at level start, which do not require any of the level's data to be present. | |||
If you need to initialize data on level start per individual player, see: [[EVENT_ENTERLEVEL]] | |||
[[Category:Events]] | [[Category:Events]] |
Latest revision as of 06:39, 5 February 2022
Event ID | player# | THISACTOR | RETURN | |
---|---|---|---|---|
EVENT_PRELEVEL | -1 | -1 | 0 values |
EVENT_PRELEVEL is a Game Event.
This event is executed when the map is loaded, before event EVENT_ENTERLEVEL.
It is placed at the very beginning of the engine's prelevel()
function, after actor variables have been reset, but before any sector data is set up, before the player has been defined, before sprites are spawned, and before any EVENT_LOADACTOR is executed.
You can use this event to initialize gamevars at level start, which do not require any of the level's data to be present.
If you need to initialize data on level start per individual player, see: EVENT_ENTERLEVEL