enableSaving: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *(arg|eff|mp|serverExec|gr[0-9]) *= *(.*) * *\|([^=0-9]{12})" to "|$1=$2 |descr=$3")
m (Add DescriptioN.ext - saving seeAlso link)
 
(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma2
|game1= arma2
|1.00
|version1= 1.00


|game2= arma2oa
|game2= arma2oa
Line 17: Line 17:
|descr= Enable / disable saving of the game with an optional autosave.
|descr= Enable / disable saving of the game with an optional autosave.


|s1= [[enableSaving]] enable
|s1= [[enableSaving]] enable


|p1= enable: [[Boolean]]
|p1= enable: [[Boolean]]
Line 25: Line 25:
|s2= [[enableSaving]] [enable, save]
|s2= [[enableSaving]] [enable, save]


|p21= enable: [[Boolean]] - allow manual saving
|p21= enable: [[Boolean]] - allow [[saveGame]] command usage and manual saving


|p22= save: [[Boolean]] - create an autosave on command execution
|p22= save: [[Boolean]] - create an autosave on command execution
Line 31: Line 31:
|r2= [[Nothing]]
|r2= [[Nothing]]


|x1= <code>[[enableSaving]] [[false]]; {{cc|saving disabled, does autosave - same as [<nowiki/>[[false]], [[true]]]}}
|x1= <sqf>
[[enableSaving]] [[true]]; {{cc|saving enabled, doesn't autosave - same as [<nowiki/>[[true]], [[false]]]}}
enableSaving false; // saving disabled, does autosave - same as [false, true]
enableSaving true; // saving enabled, does not autosave - same as [true, false]


[[enableSaving]] [<nowiki/>[[false]], [[false]]]; {{cc|saving disabled, doesn't autosave}}
enableSaving [false, false]; // saving disabled, does not autosave
[[enableSaving]] [<nowiki/>[[false]], [[true]]]; {{cc|saving disabled, does autosave}}
enableSaving [false, true]; // saving disabled, does autosave
[[enableSaving]] [<nowiki/>[[true]], [[false]]]; {{cc|saving enabled, doesn't autosave}}
enableSaving [true, false]; // saving enabled, doesn't autosave
[[enableSaving]] [<nowiki/>[[true]], [[true]]]; {{cc|saving enabled, does autosave}}
enableSaving [true, true]; // saving enabled, does autosave
</code>
</sqf>


|seealso= [[loadGame]], [[saveGame]], [[savingEnabled]]
|seealso= [[loadGame]] [[saveGame]] [[savingEnabled]] [[isSaving]] [[BIS_fnc_enableSaving]] {{Link|Description.ext#saving}}
}}
}}


{{GameCategory|arma3|Scripting Commands}}
{{Note
{{GameCategory|tkoh|Scripting Commands}}
|user= POLPOX
|timestamp= 20230102114855
|text= Also possible to disable Save and Exit button from pause menu and replaces it with Abort. (confirmed in Arma 3 2.12)
}}

Latest revision as of 00:04, 29 April 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 BIS_fnc_enableSaving Description.ext - saving

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. (confirmed in Arma 3 2.12)