enableSaving: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (example error) |
m (template:command argument fix) |
||
Line 14: | Line 14: | ||
| '''enableSaving''' enable |= Syntax | | '''enableSaving''' enable |= Syntax | ||
|p1= enable: [[Boolean]] - |= | |p1= enable: [[Boolean]] - |PARAMETER1= | ||
|p2= |= | |p2= |PARAMETER2= | ||
|p3= |= | |p3= |PARAMETER3= | ||
| [[Nothing]] |= | | [[Nothing]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 41: | Line 41: | ||
[[enableSaving]] [ [[true]], [[false]] ]; // Saving enabled without autosave. | [[enableSaving]] [ [[true]], [[false]] ]; // Saving enabled without autosave. | ||
[[enableSaving]] [ [[true]], [[true]] ]; // Saving enabled and make autosave. | [[enableSaving]] [ [[true]], [[true]] ]; // Saving enabled and make autosave. | ||
</code>|= | </code>|EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[loadGame]], [[saveGame]], [[savingEnabled]] |= | | [[loadGame]], [[saveGame]], [[savingEnabled]] |SEEALSO= | ||
| |= | | |MPBEHAVIOUR= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
}} | }} |
Revision as of 10:31, 7 April 2019
Description
- Description:
- Enable / disable saving of the game.
When disabled, the autosave is created (if not forbidden by save == false). - Groups:
- Uncategorised
Syntax
Alternative Syntax
- Syntax:
- enableSaving [enable, save]
- Parameters:
- [enable, save]: Array
- enable: Boolean - allow manual saving
- save: Boolean - create autosave
- Return Value:
- Nothing
Examples
- Example 1:
enableSaving false; // Saving disabled and make autosave. enableSaving true; // Saving enabled without autosave. enableSaving [ false, false ]; // Saving disabled without autosave. enableSaving [ false, true ]; // Saving disabled and make autosave. enableSaving [ true, false ]; // Saving enabled without autosave. enableSaving [ true, true ]; // Saving enabled and make 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