enableSaving: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma2 |Game name=
| arma2


|1.00|Game version=
|1.00


|gr1= Mission Information |GROUP1=
|gr1= Mission Information


| Enable / disable saving of the game with an optional autosave. |DESCRIPTION=
| Enable / disable saving of the game with an optional autosave.


| [[enableSaving]] enable |SYNTAX=
| [[enableSaving]] enable


|p1= enable: [[Boolean]] |PARAMETER1=
|p1= enable: [[Boolean]]


| [[Nothing]] |RETURNVALUE=
| [[Nothing]]




|s2= [[enableSaving]] [enable, save] |SYNTAX2=
|s2= [[enableSaving]] [enable, save]


|p21= enable: [[Boolean]] - allow manual saving |PARAMETER21=
|p21= enable: [[Boolean]] - allow manual saving |PARAMETER21=
Line 22: Line 22:
|p22= save: [[Boolean]] - create an autosave on command execution |PARAMETER22=
|p22= save: [[Boolean]] - create an autosave on command execution |PARAMETER22=


|r2= [[Nothing]] |RETURNVALUE2=
|r2= [[Nothing]]


|x1= <code>[[enableSaving]] [[false]]; {{cc|saving disabled, does autosave - same as [<nowiki/>[[false]], [[true]]]}}
|x1= <code>[[enableSaving]] [[false]]; {{cc|saving disabled, does autosave - same as [<nowiki/>[[false]], [[true]]]}}
Line 31: Line 31:
[[enableSaving]] [<nowiki/>[[true]], [[false]]]; {{cc|saving enabled, doesn't autosave}}
[[enableSaving]] [<nowiki/>[[true]], [[false]]]; {{cc|saving enabled, doesn't autosave}}
[[enableSaving]] [<nowiki/>[[true]], [[true]]]; {{cc|saving enabled, does autosave}}
[[enableSaving]] [<nowiki/>[[true]], [[true]]]; {{cc|saving enabled, does autosave}}
</code>|EXAMPLE1=
</code>


| [[loadGame]], [[saveGame]], [[savingEnabled]] |SEEALSO=
| [[loadGame]], [[saveGame]], [[savingEnabled]]
}}
}}



Revision as of 00:38, 18 January 2021

Hover & click on the images for description

Description

Description:
Enable / disable saving of the game with an optional autosave.
Groups:
Mission Information

Syntax

Syntax:
enableSaving enable
Parameters:
enable: Boolean
Return Value:
Nothing

Alternative Syntax

Syntax:
enableSaving [enable, save]
Parameters:
enable: Boolean - allow manual saving
save: Boolean - create an autosave on command execution
Return Value:
Nothing

Examples

Example 1:
enableSaving false; // saving disabled, does autosave - same as [false, true] enableSaving true; // saving enabled, doesn't autosave - same as [true, false] enableSaving [false, false]; // saving disabled, doesn't autosave enableSaving [false, true]; // saving disabled, does autosave enableSaving [true, false]; // saving enabled, doesn't autosave enableSaving [true, true]; // saving enabled, does autosave

Additional Information

See also:
loadGamesaveGamesavingEnabled

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