enableSaving: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(syntax)
m (Add DescriptioN.ext - saving seeAlso link)
 
(47 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma2 |= Game name
|game1= arma2
|version1= 1.00


|1.00|= Game version
|game2= arma2oa
____________________________________________________________________________________________
|version2= 1.50


| Enable / disable saving of the game.
|game3= tkoh
|version3= 1.00


When disabled, the autosave is created (if not forbidden by save <nowiki>==</nowiki> false). |= Description
|game4= arma3
____________________________________________________________________________________________
|version4= 0.50


| '''enableSaving''' enable |= Syntax
|gr1= Mission Information


|p1= enable: [[Boolean]] - |= PARAMETER1
|descr= Enable / disable saving of the game with an optional autosave.


|p2= |= PARAMETER2
|s1= [[enableSaving]] enable


|p3= |= PARAMETER3
|p1= enable: [[Boolean]]


| [[Nothing]] |= RETURNVALUE
|r1= [[Nothing]]


____________________________________________________________________________________________
|s2= [[enableSaving]] [enable, save]


|s2= '''enableSaving''' [enable, save] |=
|p21= enable: [[Boolean]] - allow [[saveGame]] command usage and manual saving


|p21= [enable, save]: [[Array]] |=
|p22= save: [[Boolean]] - create an autosave on command execution


|p22= enable: [[Boolean]] - allow manual saving |=
|r2= [[Nothing]]


|p23= save: [[Boolean]] - create autosave |=
|x1= <sqf>
enableSaving false; // saving disabled, does autosave - same as [false, true]
enableSaving true; // saving enabled, does not autosave - same as [true, false]


|r2= [[Nothing]] |=
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>


|x1= <pre>
|seealso= [[loadGame]] [[saveGame]] [[savingEnabled]] [[isSaving]] [[BIS_fnc_enableSaving]] {{Link|Description.ext#saving}}
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 without autosave.
</pre>|= EXAMPLE1
 
____________________________________________________________________________________________


| |= SEEALSO
{{Note
 
|user= POLPOX
| |= MPBEHAVIOUR
|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)
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:ArmA 2: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

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)