Difference between revisions of "GetGameLoaded"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>WereWolf
 
(5 intermediate revisions by 2 users not shown)
Line 2: Line 2:


'''Syntax:'''
'''Syntax:'''
  GetGameLoaded
  (gameLoaded:bool) GetGameLoaded


Returns true if a savegame has been loaded since the function was last called.
Returns true if a savegame has been loaded since the function was last called.


==Notes==
==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.
* Returns true once per ''script'', not per object. If you have 2 objects with the same script, '''GetGameLoaded''' will return true for only one of them. And if the script uses '''GetGameLoaded''' more than once, it will return true for only the first use.
 
== See Also ==
*[[GetGameRestarted]]


<!--[[Category:OBSE Functions]]  
<!--[[Category:OBSE Functions]]  

Latest revision as of 07:18, 25 December 2022

A command for Oblivion Script Extender

Syntax:

(gameLoaded:bool) GetGameLoaded

Returns true if a savegame has been loaded since the function was last called.

Notes[edit | edit source]

  • Returns true once per script, not per object. If you have 2 objects with the same script, GetGameLoaded will return true for only one of them. And if the script uses GetGameLoaded more than once, it will return true for only the first use.

See Also[edit | edit source]