Arma 3 Scripting

Function in Missions

BIS_fnc_endMission

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

Description

Ends mission with a signature shot or a fade effect, marks it finished for Steam and activates a key in format activateKey format ["BIS_%1.%2_done", missionName, worldName];.

Important

This function should always be used instead of the simple endMission/failMission commands or trigger endings; otherwise, singleplayer scenarios will not properly be marked as played/finished in the game and on Steam!

Syntax

[endName, isVictory, fadeType, playMusic, cancelTasks] call BIS_fnc_endMission

Parameters:

Returns: Boolean

Examples

Example 1

"end1" call BIS_fnc_endMission;

Example 2

["epicFail", false, 2] call BIS_fnc_endMission;

See also

BIS_fnc_endMissionServer · Debriefing · endMission · markAsFinishedOnSteam

Community notes

R3vo

To end a multiplayer mission one can use ["end1", true] remoteExecCall ["BIS_fnc_endMission"]; - see also BIS_fnc_endMissionServer.