EVENT LOADGAME

From EDukeWiki
Revision as of 07:51, 4 February 2022 by Doom64hunter (talk | contribs) (This event has a RETURN value)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Event ID player# THISACTOR RETURN
EVENT_LOADGAME screenpeek Player->i 1 value

EVENT_LOADGAME is a Game Event.

This event is fired immediately after a savegame is loaded.

RETURN is set to the value of userbyteversion stored in the savegame (read-only), if the savegame is not extended JSON format (as used by Ion Fury). Otherwise, the value is set to 0.

This can be used to detect the version of the game that is loaded in the savegame, for backwards-compatibility changes for example.