enableSaving: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 47: Line 47:
|user= POLPOX
|user= POLPOX
|timestamp= 20230102114855
|timestamp= 20230102114855
|text= Also possible to disable Save and Exit button from pause menu.
|text= Also possible to disable Save and Exit button from pause menu and replaces it with Abort.
}}
}}

Revision as of 14:01, 2 January 2023

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 saveGame command usage and 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
POLPOX - c
Posted on Jan 02, 2023 - 11:48 (UTC)
Also possible to disable Save and Exit button from pause menu and replaces it with Abort.