EVENT PRELEVEL

From EDukeWiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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