savingEnabled: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 $2")
m (Some wiki formatting)
Line 18: Line 18:
{{Feature|arma3|If saving is disabled by [[Eden Editor]] mission attribute, this command will still return [[true]].}}
{{Feature|arma3|If saving is disabled by [[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]]
}}
}}

Revision as of 16:31, 10 May 2022

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