isSaving: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 $2")
m (Text replacement - "[] spawn" to "0 spawn")
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
|game1= arma3
|game1= arma3
|version1= 2.08
|version1= 2.08
|branch= dev
|gr1= Mission Information
|gr1= Mission Information


Line 13: 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>
0 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 21:24, 2 September 2024

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:
0 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