enableSaving: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
m (Add DescriptioN.ext - saving seeAlso link)
 
(29 intermediate revisions by 4 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


|gr1= Mission Information |GROUP1=
|game3= tkoh
____________________________________________________________________________________________
|version3= 1.00


| Enable / disable saving of the game with an optional autosave. |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.


| [[Nothing]] |RETURNVALUE=
|s1= [[enableSaving]] enable


____________________________________________________________________________________________
|p1= enable: [[Boolean]]


|s2= [[enableSaving]] [enable, save] |SYNTAX2=
|r1= [[Nothing]]


|p21= enable: [[Boolean]] - allow manual saving |PARAMETER21=
|s2= [[enableSaving]] [enable, save]


|p22= save: [[Boolean]] - create an autosave on command execution |PARAMETER22=
|p21= enable: [[Boolean]] - allow [[saveGame]] command usage and manual saving


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


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


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


| [[loadGame]], [[saveGame]], [[savingEnabled]] |SEEALSO=
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]] [[BIS_fnc_enableSaving]] {{Link|Description.ext#saving}}
}}
}}


<h3 style='display:none'>Notes</h3>
{{Note
<dl class='command_description'>
|user= POLPOX
<!-- Note Section BEGIN -->
|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)
<!-- Note Section END -->
}}
</dl>
 
<h3 style='display:none'>Bottom Section</h3>
 
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}
[[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)