{"name":"BIS_fnc_endMissionServer","title":"BIS fnc endMissionServer","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_endMissionServer","revid":363361,"updated":"2024-03-27T20:01:55Z","groups":["Multiplayer"],"status":"deprecated","replaced_by":["remoteExec","BIS_fnc_endMission"],"games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","locality":{"effect":"global","server_exec":true},"description":"Ends the mission properly for all players in a multiplayer environment.\n\n> [!NOTE]\n> This function is somewhat deprecated for custom endings since Arma 3 v1.50 as remote-executing BIS_fnc_endMission allows for more options:\n>\n> ```sqf\n> [\"MyEnding\", true, 3] remoteExec [\"BIS_fnc_endMission\", 0, true];\n> ```","syntaxes":[{"syntax":"endType call BIS_fnc_endMissionServer","params":[{"name":"endType","type":"String","description":"class name of ending defined in CfgDebriefing.\nCan be **custom** or one of dynamically calculated ones:\n\n- \"EveryoneWon\" - Show \"MISSION COMPLETED\" to everyone\n- \"EveryoneLost\" - Show \"MISSION FAILED\" to everyone\n- \"SideTickets\" - Show \"YOUR SIDE WON\" to side/s with most tickets and \"YOUR SIDE LOST\" to everyone else\n- \"SideScore\" - Show \"YOUR SIDE WON\" to side with largest score\n- \"GroupScore\" - Show \"YOUR GROUP WON\" to group with largest score\n- \"PlayerScore\" - Show \"YOU WON\" to player with largest score","type_expr":"String"}],"returns":{"type":"Boolean","type_expr":"Boolean"}}],"examples":[{"code":["\"SideScore\" call BIS_fnc_endMissionServer;"]}],"see_also":["BIS_fnc_endMission","failMission","forceEnd","endMission"]}