enableSaving: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]2(\|.*)\]\]" to "{{GameCategory|arma2|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma2 |Game name=
| arma2 |Game name=
Line 7: Line 6:


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


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


| [[enableSaving]] enable |SYNTAX=
| [[enableSaving]] enable |SYNTAX=
Line 18: Line 15:
| [[Nothing]] |RETURNVALUE=
| [[Nothing]] |RETURNVALUE=


____________________________________________________________________________________________


|s2= [[enableSaving]] [enable, save] |SYNTAX2=
|s2= [[enableSaving]] [enable, save] |SYNTAX2=
Line 27: Line 23:


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


|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 37: Line 32:
[[enableSaving]] [<nowiki/>[[true]], [[true]]]; {{cc|saving enabled, does autosave}}
[[enableSaving]] [<nowiki/>[[true]], [[true]]]; {{cc|saving enabled, does autosave}}
</code>|EXAMPLE1=  
</code>|EXAMPLE1=  
____________________________________________________________________________________________


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

Revision as of 02:21, 17 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