savingEnabled: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *arma2 * * *\| *([0-1]\.[0-9]{2}) * \|game2" to "|game1= arma2 |version1= $1 |game2")
m (Text replacement - "Category:Eden Editor" to "Eden Editor")
 
(7 intermediate revisions by 2 users not shown)
Line 16: Line 16:


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


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


|r1= [[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|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

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