Arma 3 Scripting

loadGame

  • Arma 3 v0.50
  • First in Arma 2 v1.00

Command · Markdown · JSON · 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