{"name":"BIS_fnc_respawnEndMission","title":"BIS fnc respawnEndMission","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_respawnEndMission","revid":363227,"updated":"2024-03-26T10:50:29Z","groups":["Respawn"],"status":"ok","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","description":"End a mission if all players are dead *and* there are no more respawn tickets (if any).\n\n- **Standard syntax** is for when Respawn is \"NONE\", \"BIRD\", \"GROUP\" or \"SIDE\"\n- **Alternative syntax** is for when Respawn is \"INSTANT\" or \"BASE\"\n\n> [!IMPORTANT]\n> Only works in Multiplayer!","syntaxes":[{"syntax":"call BIS_fnc_respawnEndMission","params":[{"name":"unit","type":"Object","type_expr":"Object"}],"returns":{"type":"Nothing","type_expr":"Nothing","description":"the script doesn't end"}},{"syntax":"unit call BIS_fnc_respawnEndMission","params":[],"returns":{"type":"Nothing","type_expr":"Nothing"}}],"examples":[{"code":["call BIS_fnc_respawnEndMission;"]},{"code":["player call BIS_fnc_respawnEndMission;"]}],"see_also":["BIS_fnc_endMission","BIS_fnc_respawnTickets","BIS_fnc_missionRespawnType","playableUnits","isMultiplayer"]}