enableSaving: Difference between revisions
Jump to navigation
Jump to search
(add. ArmA2 classification) |
mNo edit summary |
||
(24 intermediate revisions by 10 users not shown) | |||
Line 1: | Line 1: | ||
{{Command|Comments= | |||
____________________________________________________________________________________________ | |||
[[Category:Scripting Commands | | arma2 |Game name= | ||
|1.00|Game version= | |||
|gr1= Mission Information |GROUP1= | |||
____________________________________________________________________________________________ | |||
| Enable / disable saving of the game with an optional autosave. |DESCRIPTION= | |||
____________________________________________________________________________________________ | |||
| [[enableSaving]] enable |SYNTAX= | |||
|p1= enable: [[Boolean]] |PARAMETER1= | |||
| [[Nothing]] |RETURNVALUE= | |||
____________________________________________________________________________________________ | |||
|s2= [[enableSaving]] [enable, save] |SYNTAX2= | |||
|p21= enable: [[Boolean]] - allow manual saving |PARAMETER21= | |||
|p22= save: [[Boolean]] - create an autosave on command execution |PARAMETER22= | |||
|r2= [[Nothing]] |RETURNVALUE2= | |||
____________________________________________________________________________________________ | |||
|x1= <code>[[enableSaving]] [[false]]; {{cc|saving disabled, does autosave - same as [<nowiki/>[[false]], [[true]]]}} | |||
[[enableSaving]] [[true]]; {{cc|saving enabled, doesn't autosave - same as [<nowiki/>[[true]], [[false]]]}} | |||
[[enableSaving]] [<nowiki/>[[false]], [[false]]]; {{cc|saving disabled, doesn't autosave}} | |||
[[enableSaving]] [<nowiki/>[[false]], [[true]]]; {{cc|saving disabled, does autosave}} | |||
[[enableSaving]] [<nowiki/>[[true]], [[false]]]; {{cc|saving enabled, doesn't autosave}} | |||
[[enableSaving]] [<nowiki/>[[true]], [[true]]]; {{cc|saving enabled, does autosave}} | |||
</code>|EXAMPLE1= | |||
____________________________________________________________________________________________ | |||
| [[loadGame]], [[saveGame]], [[savingEnabled]] |SEEALSO= | |||
}} | |||
<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 Arma 2|{{uc:{{PAGENAME}}}}]] | |||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | |||
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]] | |||
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] |
Revision as of 10:03, 19 September 2020
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