isSaving: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|branch= dev " to "")
m (Some wiki formatting)
 
Line 11: Line 11:
|r1= [[Boolean]] - [[true]] autosave request is made, [[false]] autosave request is processed
|r1= [[Boolean]] - [[true]] autosave request is made, [[false]] autosave request is processed


|x1= <code>[] [[spawn]]
|x1= <sqf>
[] spawn
{
{
[[saveGame]];
saveGame;
[[waitUntil]] { ![[isSaving]] };
waitUntil { !isSaving };
[[systemChat]] "Game Saving Is Done!";
systemChat "Game Saving Is Done!";
};</code>
};
</sqf>


|seealso= [[saveGame]] [[enableSaving]] [[loadGame]] [[savingEnabled]]
|seealso= [[saveGame]] [[enableSaving]] [[loadGame]] [[savingEnabled]]
}}
}}

Latest revision as of 13:09, 3 May 2022

Hover & click on the images for description

Description

Description:
Returns the status of autosave request, made when saveGame command is executed. When request is made, the command immediately returns true. The engine then handles the saving and when it is done, the command returns false.
Groups:
Mission Information

Syntax

Syntax:
isSaving
Return Value:
Boolean - true autosave request is made, false autosave request is processed

Examples

Example 1:
[] spawn { saveGame; waitUntil { !isSaving }; systemChat "Game Saving Is Done!"; };

Additional Information

See also:
saveGame enableSaving loadGame savingEnabled

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