savingEnabled: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "Category:Eden Editor" to "Eden Editor")
 
(30 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


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


| Check if saving the game is enabled. |DESCRIPTION=
|game4= arma3
____________________________________________________________________________________________
|version4= 0.50


| '''savingEnabled''' |SYNTAX=
|gr1= Mission Information


|p1= |PARAMETER1=
|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]].}}


|p2= |PARAMETER2=  
|s1= [[savingEnabled]]


|p3= |PARAMETER3=  
|r1= [[Boolean]]


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


 
|seealso= [[enableSaving]] [[loadGame]] [[saveGame]] [[isSaving]]
|x1= <code>[[if]] ([[savingEnabled]]) [[then]] {
  [[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:Scripting Commands Arma 2|{{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 13: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