Arma 3 Scripting

Command in Mission Information

loadGame

Also available as Markdown and JSON, or read the original wiki page.

Description

Loads game from the last autosave made with saveGame. If no autosave exists, restarts the mission. When used in campaign it will also deduct 1 life, defined in:

campaignConfigFile >> "Campaign" / "ChapterName" / "MissionName" / "lives"

Note

A "Loaded" mission event handler is available; it is important that it is added in preInit in order for it to fire on load from save.

Syntax

loadGame

Returns: Nothing

Examples

Example 1

loadGame;

See also

enableSaving · saveGame · savingEnabled · isSaving