enableSaving: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|= Game version" to "|Game version=") |
Lou Montana (talk | contribs) m (Fix Category:Pages using duplicate arguments in template calls and some description) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Enable / disable saving of the game | | Enable / disable saving of the game with an optional autosave. |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [[enableSaving]] enable |SYNTAX= | ||
| | |p1= enable: [[Boolean]] |PARAMETER1= | ||
| [[Nothing]] |RETURNVALUE= | | [[Nothing]] |RETURNVALUE= | ||
Line 24: | Line 18: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|s2= | |s2= [[enableSaving]] [enable, save] |SYNTAX2= | ||
|p21= | |p21= enable: [[Boolean]] - allow manual saving |PARAMETER21= | ||
|p22= | |p22= save: [[Boolean]] - create an autosave on command execution |PARAMETER22= | ||
|r2= [[Nothing]] |RETURNVALUE2= | |||
____________________________________________________________________________________________ | |||
|r2= [[Nothing]] |= | |||
|x1= <code>[[enableSaving]] [[false]]; | |x1= <code>[[enableSaving]] [[false]]; {{cc|saving disabled, does autosave - same as [<nowiki/>[[false]], [[true]]]}} | ||
[[enableSaving]] [[true]]; | [[enableSaving]] [[true]]; {{cc|saving enabled, doesn't autosave - same as [<nowiki/>[[true]], [[false]]]}} | ||
[[enableSaving]] [ [[false]], [[false]] ]; | [[enableSaving]] [<nowiki/>[[false]], [[false]]]; {{cc|saving disabled, doesn't autosave}} | ||
[[enableSaving]] [ [[false]], [[true]] | [[enableSaving]] [<nowiki/>[[false]], [[true]]]; {{cc|saving disabled, does autosave}} | ||
[[enableSaving]] [ [[true]], | [[enableSaving]] [<nowiki/>[[true]], [[false]]]; {{cc|saving enabled, doesn't autosave}} | ||
[[enableSaving]] [ [[true]], | [[enableSaving]] [<nowiki/>[[true]], [[true]]]; {{cc|saving enabled, does autosave}} | ||
</code>|EXAMPLE1= | </code>|EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[loadGame]], [[saveGame]], [[savingEnabled]] |SEEALSO= | | [[loadGame]], [[saveGame]], [[savingEnabled]] |SEEALSO= | ||
}} | }} | ||
Revision as of 23:13, 14 September 2019
Description
- Description:
- Enable / disable saving of the game with an optional autosave.
- Groups:
- Uncategorised
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