savingEnabled: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
m (Text replacement - "Category:Eden Editor" to "Eden Editor")
 
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma2
|game1= arma2
|version1= 1.00


|1.00
|game2= arma2oa
|version2= 1.50
 
|game3= tkoh
|version3= 1.00
 
|game4= arma3
|version4= 0.50


|gr1= Mission Information
|gr1= Mission Information


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


| '''savingEnabled'''
|s1= [[savingEnabled]]


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


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


|seealso= [[enableSaving]], [[loadGame]], [[saveGame]]
|seealso= [[enableSaving]] [[loadGame]] [[saveGame]] [[isSaving]]
}}
}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}
[[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