savingEnabled: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 $2")
m (Text replacement - "Category:Eden Editor" to "Eden Editor")
 
(2 intermediate revisions by the same user 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]] [[isSaving]]
|seealso= [[enableSaving]] [[loadGame]] [[saveGame]] [[isSaving]]
}}
}}

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