saveGame: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "[[Category:Scripting_Commands_Take_On_Helicopters" to "[[Category:Scripting Commands Take On Helicopters")
(20 intermediate revisions by 11 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|SAVEGAME]]
{{Command|Comments=
[[Category:Scripting Commands OFP 1.96|SAVEGAME]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|SAVEGAME]]
 
[[Category:Scripting Commands ArmA|SAVEGAME]]
| ofp |Game name=
 
|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=
____________________________________________________________________________________________


<h2 style="color:#000066">'''saveGame'''</h2>
| '''saveGame''' |SYNTAX=


| [[Nothing]] |RETURNVALUE=


'''Operand types:'''
|x1= <code>[[saveGame]];</code> |EXAMPLE1=
____________________________________________________________________________________________


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


'''Type of returned value:'''
}}


[[Nothing]]
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Description:'''
<!-- Note Section END -->
</dl>


Autosave game (used for Retry).
<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