# Mission Information (scripting commands)

- [activateKey](../../commands/activateKey.md): Activates the given keyname for the current user profile. The keys are used to unlock missions or campaigns. See `keys`, `keysLimit` and `doneKeys` in the Description.ext#Mission Keys chapter.
- [dayTime](../../commands/dayTime.md): Returns the current in-game time in hours. For a formatted version of time, see BIS_fnc_timeToString.
- [deActivateKey](../../commands/deActivateKey.md): Deactivates the given keyname for the current user profile. The keys are used to unlock missions or campaigns.
- [enableEndDialog](../../commands/enableEndDialog.md): Enables the execution of a custom camera sequence after the players death, coded in onPlayerKilled.sqs.
- [enableSaving](../../commands/enableSaving.md): Enable / disable saving of the game with an optional autosave.
- [endMission](../../commands/endMission.md): Finish the mission. Mission saves are deleted. Use failMission if they should not be.
- [estimatedEndServerTime](../../commands/estimatedEndServerTime.md): Estimated end of MP game in seconds converted to serverTime.
- [estimatedTimeLeft](../../commands/estimatedTimeLeft.md): Sets the estimated time left in the game that is shown in the "Game in progress" screen or in the master browser.
- [failMission](../../commands/failMission.md): Finish the mission. If the server is set to run persistent mission, failMission will not end the mission when last player gets kicked to the lobby. Use endMission to end the mission.
- [forceEnd](../../commands/forceEnd.md): Forces mission ending (set with endMission) even if a camera effect or any another condition delays the endMission (mostly in Operation Flashpoint).
- [getMissionConfig](../../commands/getMissionConfig.md): Returns Config entry for the given scenario attribute from the 1st tier. The attribute can be config class or config property. If it is defined in multiple places, the command checks them in the following order: 1.
- [getMissionConfigValue](../../commands/getMissionConfigValue.md): Returns value of the given scenario attribute from the 1st tier. Since only config properties have values, the attribute should be config property. If it is not found or config class is given, the return is nil.
- [getMissionDLCs](../../commands/getMissionDLCs.md): Returns list of DLCs that are used in the mission.
- [getMissionLayerEntities](../../commands/getMissionLayerEntities.md): Returns all entities within the specific Eden Editor layer and its sub-layers. To be used when the scenario is running, not in the editor workspace.
- [getMissionLayers](../../commands/getMissionLayers.md): Returns a list of all layers created in Eden Editor. Designed to be used during a scenario. Default layers (BLUFOR, OPFOR...) are not returned.
- [getMissionPath](../../commands/getMissionPath.md): Returns mission root plus the filename in a form of filepath to be used with commands requiring absolute path such as playSound3D, drawIcon3D, createSimpleObject, etc.
- [isKeyActive](../../commands/isKeyActive.md): Checks whether the given key is active in the current user profile.
- [isSaving](../../commands/isSaving.md): Returns the status of autosave request, made when saveGame command is executed. When request is made, the command immediately returns true.
- [isSteamMission](../../commands/isSteamMission.md): Returns true if the current mission is a Steam Workshop mission.
- [loadGame](../../commands/loadGame.md): 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:
- [loadStatus](../../commands/loadStatus.md): Loads object's properties from Objects.sav file in campaign directory (from entry name).
- [markAsFinishedOnSteam](../../commands/markAsFinishedOnSteam.md): Marks current mission as finished on Steam. Returns true if Steam query is successfully started or false otherwise.
- [missionDifficulty](../../commands/missionDifficulty.md): Return difficulty that has been forced for this mission, returns -1 if difficulty is not forced and it is used one from player's options.
- [missionEnd](../../commands/missionEnd.md): Returns mission end type and how it was ended or an empty array [] is mission was not ended.
- [missionName](../../commands/missionName.md): Return currently loaded mission file (path to mission.pbo, relative to game exe).
- [missionNameSource](../../commands/missionNameSource.md): Return workshop-compatible currently loaded mission file (path to mission.pbo, relative to game exe).
- [missionStart](../../commands/missionStart.md): Returns date and time when mission started. Because this command returns the time of the actual start of the mission, it might not be available in *pre-init* or *init*, but is guaranteed to be available in *post-init*…
- [missionVersion](../../commands/missionVersion.md): Returns the version of the current mission. - Mission from the 2D Editor: 12 - Mission from the Eden Editor: 15 and higher (for example current version for Eden Editor mission in Arma 3 v1.57 is 51)
- [saveGame](../../commands/saveGame.md): Autosaves the game (used for Retry). The saving is not started immediately, the request for autosave is made instead. To check the status of the request, use isSaving.
- [saveStatus](../../commands/saveStatus.md): Saves object's properties to Objects.sav file in campaign directory as entry name.
- [savingEnabled](../../commands/savingEnabled.md): Check if saving the game is enabled.
- [selectBestPlaces](../../commands/selectBestPlaces.md): Find the places with the maximum value of *expression* in the given area. Places can be on water. Results are sorted by value. Search pattern is randomised every command execution.
- [serverTime](../../commands/serverTime.md): Returns the time since latest server (re)start in seconds.
- [setDate](../../commands/setDate.md): Sets mission date and time. Players joining after mission start will get the current server date including the year.
- [setTimeMultiplier](../../commands/setTimeMultiplier.md): Sets a time multiplier for in-game time. The command range is capped at 0.1 - 120 to avoid performance problems.
- [time](../../commands/time.md): Returns time elapsed since mission started (in seconds). The value is different on each client. If you need unified time, use serverTime. Unlike uiTime the time stops when game is paused.
- [timeMultiplier](../../commands/timeMultiplier.md): Returns the value set with setTimeMultiplier.
- [uiTime](../../commands/uiTime.md): Returns UI time elapsed since mission started (in seconds). Unlike time the uiTime does not stop when game is paused.
- [worldName](../../commands/worldName.md): Return the name of the currently loaded world.
- [worldSize](../../commands/worldSize.md): Returns the engine calculated size (terrain side length) of the current world in meters. In Arma, terrains are always square. (BIS_fnc_mapSize may return the same value, but is just a simple look up in config).
