savingEnabled: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (Text replacement - "Category:Eden Editor" to "Eden Editor")
 
(38 intermediate revisions by 3 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


| Check if saving the game is enabled. |DESCRIPTION=
|game3= tkoh
____________________________________________________________________________________________
|version3= 1.00


| '''savingEnabled''' |SYNTAX=
|game4= arma3
|version4= 0.50


|p1= |PARAMETER1=  
|gr1= Mission Information


|p2= |PARAMETER2=
|descr= Check if saving the game is enabled.
{{Feature|arma3|If saving is disabled by [[:Category:Eden Editor|Eden Editor]] mission attribute, this command will still return [[true]].}}


|p3= |PARAMETER3=  
|s1= [[savingEnabled]]


| [[Boolean]] |RETURNVALUE=
|r1= [[Boolean]]


|x1= <sqf>
if (savingEnabled) then
{
hint "Saving is enabled!";
};
</sqf>


|x1= <code>[[if]] ([[savingEnabled]]) [[then]] {
|seealso= [[enableSaving]] [[loadGame]] [[saveGame]] [[isSaving]]
  [[hint]] "Saving is enabled!";
};</code>|EXAMPLE1=
 
____________________________________________________________________________________________
 
| [[enableSaving]], [[loadGame]], [[saveGame]] |SEEALSO=
 
|  |MPBEHAVIOUR=
____________________________________________________________________________________________
}}
}}
<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 Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 14:26, 9 July 2023

Hover & click on the images for description

Description

Description:
Check if saving the game is enabled.
Arma 3
If saving is disabled by Eden Editor mission attribute, this command will still return true.
Groups:
Mission Information

Syntax

Syntax:
savingEnabled
Return Value:
Boolean

Examples

Example 1:
if (savingEnabled) then { hint "Saving is enabled!"; };

Additional Information

See also:
enableSaving loadGame saveGame isSaving

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