Difference between revisions of "enableSaving"

From Bohemia Interactive Community
Jump to navigation Jump to search
(formatting example, added see also)
Line 9: Line 9:
 
| Enable / disable saving of the game.
 
| Enable / disable saving of the game.
  
When disabled, the autosave is created (if not forbidden by save <nowiki>==</nowiki> false). |= Description
+
<br>When disabled, the autosave is created (if not forbidden by save <nowiki>==</nowiki> false). |= Description
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
Line 34: Line 34:
 
|r2= [[Nothing]] |=
 
|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 without autosave.
</pre>|= EXAMPLE1  
+
</code>|= EXAMPLE1  
  
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| |= SEEALSO  
+
| [[loadGame]], [[saveGame]], [[savingEnabled]] |= SEEALSO  
  
 
|  |= MPBEHAVIOUR  
 
|  |= MPBEHAVIOUR  

Revision as of 01:05, 16 March 2014

Introduced with Arma 2 version 1.001.00
Hover & click on the images for descriptions

Description

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

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 without autosave.

Additional Information

See also:
loadGamesaveGamesavingEnabled
Groups:
Uncategorised

Notes

i
Only post proven facts here. Report bugs on the Feedback Tracker and discuss on the Arma Discord or on the Forums.

Notes

Bottom Section