Warning
This function is deprecated. Use remoteExec or BIS_fnc_endMission instead.
Description
Ends the mission properly for all players in a multiplayer environment.
Note
This function is somewhat deprecated for custom endings since Arma 3 v1.50 as remote-executing BIS_fnc_endMission allows for more options:
["MyEnding", true, 3] remoteExec ["BIS_fnc_endMission", 0, true];
Syntax
endType call BIS_fnc_endMissionServer
Parameters:
-
endType: String - class name of ending defined in CfgDebriefing.Can be custom or one of dynamically calculated ones:
- "EveryoneWon" - Show "MISSION COMPLETED" to everyone
- "EveryoneLost" - Show "MISSION FAILED" to everyone
- "SideTickets" - Show "YOUR SIDE WON" to side/s with most tickets and "YOUR SIDE LOST" to everyone else
- "SideScore" - Show "YOUR SIDE WON" to side with largest score
- "GroupScore" - Show "YOUR GROUP WON" to group with largest score
- "PlayerScore" - Show "YOU WON" to player with largest score
Returns: Boolean
Examples
Example 1
"SideScore" call BIS_fnc_endMissionServer;