enableSaving: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Reverted incorrect change.)
m (template:command argument fix)
(6 intermediate revisions by 4 users not shown)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Enable / disable saving of the game. When disabled,the autosave is created (if not forbidden by save == false). |= Description
| Enable / disable saving of the game.
 
<br>When disabled, the autosave is created (if not forbidden by save <nowiki>==</nowiki> false). |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''enableSaving''' enable or [enable,save] |= Syntax
| '''enableSaving''' enable |SYNTAX=
 
|p1= enable: [[Boolean]] - |PARAMETER1=
 
|p2= |PARAMETER2=
 
|p3= |PARAMETER3=
 
| [[Nothing]] |RETURNVALUE=
 
____________________________________________________________________________________________


|p1= [enable,save]: Array -  |= PARAMETER1
|s2= '''enableSaving''' [enable, save] |=  


|p2= |= PARAMETER2
|p21= [enable, save]: [[Array]] |=  


|p3= |= PARAMETER3
|p22= enable: [[Boolean]] - allow manual saving |=


| Nothing |= RETURNVALUE
|p23= save: [[Boolean]] - create autosave |=  


|r2= [[Nothing]] |=


|x1= <pre>
|x1= <code>[[enableSaving]] [[false]]; // Saving disabled and make autosave.
enableSaving false; // Saving disabled and make autosave.
[[enableSaving]] [[true]]; // Saving enabled without autosave.
enableSaving true; // Saving enabled without autosave.


enableSaving [false, false]; // Saving disabled without autosave.
[[enableSaving]] [ [[false]], [[false]] ]; // Saving disabled without autosave.
enableSaving [false, true]; // Saving disabled and make autosave.
[[enableSaving]] [ [[false]], [[true]]  ]; // Saving disabled and make autosave.
enableSaving [true, false]; // Saving enabled without autosave.
[[enableSaving]] [ [[true]], [[false]] ]; // Saving enabled without autosave.
enableSaving [true, true]; // Saving enabled without autosave.
[[enableSaving]] [ [[true]], [[true]]  ]; // Saving enabled and make autosave.
</pre>|= EXAMPLE1
</code>|EXAMPLE1=  


____________________________________________________________________________________________
____________________________________________________________________________________________


| |= SEEALSO
| [[loadGame]], [[saveGame]], [[savingEnabled]] |SEEALSO=  


|  |= MPBEHAVIOUR
|  |MPBEHAVIOUR=  
____________________________________________________________________________________________
____________________________________________________________________________________________
}}
}}
Line 49: Line 61:
[[Category:ArmA 2: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[Category:ArmA 2: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Revision as of 15:38, 7 April 2019

Hover & click on the images for description

Description

Description:
Enable / disable saving of the game.
When disabled, the autosave is created (if not forbidden by save == false).
Groups:
Uncategorised

Syntax

Syntax:
enableSaving enable
Parameters:
enable: Boolean -
Return Value:
Nothing

Alternative Syntax

Syntax:
enableSaving [enable, save]
Parameters:
[enable, save]: Array
enable: Boolean - allow manual saving
save: Boolean - create autosave
Return Value:
Nothing

Examples

Example 1:
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 and make autosave.

Additional Information

See also:
loadGamesaveGamesavingEnabled

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

Notes

Bottom Section