BIS fnc endMissionServer: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|seealso= ([^ ]+)(\]\]|\}\}), *(\[\[|\{\{)" to "|seealso= $1$2 $3")
m (Text replacement - "\|seealso= ([^ ]+)(\]\]|\}\}), *(\[\[|\{\{)" to "|seealso= $1$2 $3")
Line 29: Line 29:
|x1= <code>"SideScore" [[call]] [[BIS_fnc_endMissionServer]];</code>
|x1= <code>"SideScore" [[call]] [[BIS_fnc_endMissionServer]];</code>


|seealso= [[BIS_fnc_endMission]] [[failMission]] [[forceEnd]], [[endMission]]
|seealso= [[BIS_fnc_endMission]] [[failMission]] [[forceEnd]] [[endMission]]
}}
}}

Revision as of 13:58, 1 July 2022

Hover & click on the images for description

Description

Description:
Ends the mission properly for all players in a multiplayer environment.
This function is somewhat deprecated for custom endings since Arma 3 logo black.png1.50 as remote-executing BIS_fnc_endMission allows for more options: ["MyEnding", true, 3] remoteExec ["BIS_fnc_endMission", 0, true];
Execution:
call
Groups:
Multiplayer

Syntax

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
  • "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
Return Value:
Boolean

Examples

Example 1:
"SideScore" call BIS_fnc_endMissionServer;

Additional Information

See also:
BIS_fnc_endMission failMission forceEnd endMission

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note