GetGameRestarted

From the Oblivion ConstructionSet Wiki
Revision as of 23:33, 26 December 2007 by imported>Haama (Created)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A command for Oblivion Script Extender

Syntax:

(gameRestarted:bool) GetGameRestarted

Returns 1 if Oblivion was exited and restarted since the last time this call was made from the calling script. Use this condition to reset or undo changes made by OBSE functions which are not stored in the savegame.

Notes

  • Calling this function resets the flag for the calling script only, which means that it will return true once for each script that calls it after a game has been loaded.

See Also