Difference between revisions of "RequestAutoSave - Game"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Jlundin
(Created page with 'Category:Scripting Category:Papyrus '''Member of:''' Game Script Requests an auto-save to be made. Note that the save may take a moment or so to happen. == Syntax =…')
 
imported>Taleden
(added a note that it doesn't work while a menu is open)
 
Line 3: Line 3:
'''Member of:''' [[Game Script]]
'''Member of:''' [[Game Script]]


Requests an auto-save to be made. Note that the save may take a moment or so to happen.
Requests an auto-save to be made. Note that the save may take a moment or so to happen, and will not work while in a game menu such as the inventory screen. If you need to trigger it from within a menu, add Utility.Wait(0.1) to pause your script until the player closes all menus (since Utility.Wait() does not count menu time).


== Syntax ==
== Syntax ==

Latest revision as of 12:55, 16 December 2012

Member of: Game Script

Requests an auto-save to be made. Note that the save may take a moment or so to happen, and will not work while in a game menu such as the inventory screen. If you need to trigger it from within a menu, add Utility.Wait(0.1) to pause your script until the player closes all menus (since Utility.Wait() does not count menu time).

Syntax[edit | edit source]

Function RequestAutoSave() native global

Parameters[edit | edit source]

None.

Return Value[edit | edit source]

None.

Examples[edit | edit source]

; Requests an auto-save
Game.RequestAutoSave()

See Also[edit | edit source]