Difference between revisions of "GetGameLoaded"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Scruggs
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Requires OBSE v0009 or higher.
A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]]


Syntax:
'''Syntax:'''
  if ( 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==
* It seems that checking this function resets the flag, so it may be the case that if more than one script tries to call it, only the first call will return true.
* 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.


[[Category:OBSE Functions]]  
== See Also ==
[[Category:OBSE Flow Control Functions]] [[Category:OBSE Miscellaneous Functions]]
*[[GetGameRestarted]]
 
<!--[[Category:OBSE Functions]]  
[[Category:OBSE Flow Control Functions]]
[[Category:OBSE Miscellaneous Functions]]-->
 
[[Category:Functions]]
[[Category:Functions (OBSE)]]
[[Category:Miscellaneous Functions]]
[[Category:Miscellaneous Functions (OBSE)]]

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]