saveGame: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "[[Category:Scripting_Commands_Take_On_Helicopters" to "[[Category:Scripting Commands Take On Helicopters")
(22 intermediate revisions by 12 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|S]]
{{Command|Comments=
[[Category:Scripting Commands OFP 1.97|S]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|S]]
[[Category:Scripting Commands ArmA|S]]


| ofp |Game name=


<h2 style="color:#000066">'''saveGame'''</h2>
|1.00|Game version=
____________________________________________________________________________________________


| Autosaves the game (used for Retry). The game can then be loaded from the last autosave with [[loadGame]]. Will not save if the player is [[objNull | null]] or dead.<br><br>
{{Informative | Since Arma 3 v1.87.145159 a [[BIS_fnc_addScriptedEventHandler | scripted event handler]] [[Arma_3:_Event_Handlers/ScriptedEventHandlers#Events | <tt>"OnSaveGame"</tt>]] is available}}  |DESCRIPTION=
____________________________________________________________________________________________


'''Operand types:'''
| '''saveGame''' |SYNTAX=


None
| [[Nothing]] |RETURNVALUE=


'''Type of returned value:'''
|x1= <code>[[saveGame]];</code> |EXAMPLE1=
____________________________________________________________________________________________


[[Nothing]]
| [[enableSaving]], [[loadGame]], [[savingEnabled]] |SEEALSO=


'''Description:'''
}}


Autosave game (used for Retry).
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
 
<!-- Note Section END -->
</dl>
 
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|SAVEGAME]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|SAVEGAME]]
[[Category:Scripting Commands OFP 1.46|SAVEGAME]]
[[Category:Scripting Commands ArmA|SAVEGAME]]
[[Category:Command_Group:_Mission_Information|SAVEGAME]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]

Revision as of 16:28, 6 April 2020

Hover & click on the images for description

Description

Description:
Autosaves the game (used for Retry). The game can then be loaded from the last autosave with loadGame. Will not save if the player is null or dead.

Since Arma 3 v1.87.145159 a scripted event handler "OnSaveGame" is available
Groups:
Uncategorised

Syntax

Syntax:
saveGame
Return Value:
Nothing

Examples

Example 1:
saveGame;

Additional Information

See also:
enableSavingloadGamesavingEnabled

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section