{"name":"failMission","title":"failMission","type":"command","url":"https://community.bistudio.com/wiki/failMission","revid":363258,"updated":"2024-03-26T10:51:31Z","groups":["Mission Information"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","description":"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.\n\nThe end type can be:\n\n- \"CONTINUE\" - this is default type, basically an alias to do nothing\n- \"KILLED\"\n- \"LOSER\"\n- \"END1\"\n- \"END2\"\n- \"END3\"\n- \"END4\"\n- \"END5\"\n- \"END6\"\n\n**Mission saves won't be deleted**.\n\n> [!NOTE]\n> **Arma 3:** To maintain Arma 3 visual style, it is recommended to use BIS_fnc_endMission instead.","syntaxes":[{"syntax":"failMission endtype","params":[{"name":"endtype","type":"String","type_expr":"String"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"unary","right":{"text":"endtype"}}],"examples":[{"code":["failMission \"LOSER\";"]}],"see_also":["missionEnd","endMission","forceEnd"]}