{"name":"missionEnd","operator":null,"title":"missionEnd","type":"command","url":"https://community.bistudio.com/wiki/missionEnd","revid":377043,"updated":"2026-01-01T08:50:34Z","groups":["Mission Information"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.06"}],"since":{"game":"arma3","name":"Arma 3","version":"2.06"},"arma3_since":"2.06","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns mission end type and how it was ended or an empty array [] is mission was not ended.","syntaxes":[{"syntax":"missionEnd","since":null,"effect":null,"exec":null,"params":[],"returns":{"type":"Array with [endType, failMission, isFailed] (or empty array if the mission is not ending):","types":["Array"],"description":"endType : String - the ending that was passed to failMission or endMission - failMission: Boolean - true if the mission ended via failMission, false if via endMission - isFailed: Boolean - engine idea of how mission ended. For example if mission ended via failMission but the type of ending was not \"Killed\", isFailed is false","text":"Array with [endType, failMission, isFailed] (or empty array if the mission is not ending):\n- endType : String - the ending that was passed to failMission or endMission\n- failMission: Boolean - true if the mission ended via failMission, false if via endMission\n- isFailed: Boolean - engine idea of how mission ended. For example if mission ended via failMission but the type of ending was not \"Killed\", *isFailed* is false"},"form":"nullary","operator":null,"left":null,"right":null}],"examples":[{"text":"```sqf\nprivate _endInfo = missionEnd;\n```","code":["private _endInfo = missionEnd;"]},{"text":"```sqf\nmissionEnd params [\"_endType\", \"_failMission\", \"_isFailed\"];\n```","code":["missionEnd params [\"_endType\", \"_failMission\", \"_isFailed\"];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["endMission","failMission","forceEnd"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Mission Information","Introduced with Arma 3 version 2.06","Scripting Commands"]}