enableSaving: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 31: | Line 31: | ||
|r2= [[Nothing]] | |r2= [[Nothing]] | ||
|x1= < | |x1= <sqf> | ||
enableSaving false; // saving disabled, does autosave - same as [false, true] | |||
enableSaving true; // saving enabled, does not autosave - same as [true, false] | |||
enableSaving [false, false]; // saving disabled, does not autosave | |||
enableSaving [false, true]; // saving disabled, does autosave | |||
enableSaving [true, false]; // saving enabled, doesn't autosave | |||
enableSaving [true, true]; // saving enabled, does autosave | |||
</ | </sqf> | ||
|seealso= [[loadGame]] [[saveGame]] [[savingEnabled]] [[isSaving]] | |seealso= [[loadGame]] [[saveGame]] [[savingEnabled]] [[isSaving]] | ||
}} | }} |
Revision as of 15:26, 10 May 2022
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, does not autosave - same as [true, false] enableSaving [false, false]; // saving disabled, does not 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:
- loadGame saveGame savingEnabled isSaving
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