{"name":"BIS_fnc_endMissionServer","operator":null,"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":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":null,"locality":{"argument":null,"effect":"global","server_exec":true},"exec":null,"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","since":null,"effect":null,"exec":null,"params":[{"name":"endType","type":"String","optional":false,"default":null,"description":"class name of ending defined in CfgDebriefing.\n\nCan be **custom** or one of dynamically calculated ones:\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","types":["String"],"since":null,"text":"endType: String - class name of ending defined in CfgDebriefing.\n\nCan be **custom** or one of dynamically calculated ones:\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"}],"returns":{"type":"Boolean","types":["Boolean"],"description":null,"text":"Boolean"}}],"examples":[{"text":"```sqf\n\"SideScore\" call BIS_fnc_endMissionServer;\n```","code":["\"SideScore\" call BIS_fnc_endMissionServer;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_endMission","failMission","forceEnd","endMission"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Multiplayer","Functions","Functions: Global Effect","Functions: Server Execution","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}