EVENT LOADGAME

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_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.