BIS fnc endMissionServer: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|game([0-9])=([^ ]+) * \|version([0-9])=([^ ]+) * " to "|game$1=$2 |version$3=$4 ") |
Lou Montana (talk | contribs) m (Remove "you") |
||
Line 11: | Line 11: | ||
|descr= Ends the mission properly for all players in a multiplayer environment. | |descr= Ends the mission properly for all players in a multiplayer environment. | ||
{{Feature|Informative|This function is somewhat deprecated. | {{Feature|Informative|This function is somewhat deprecated for custom endings since {{GVI|arma3|1.50}} as [[remoteExec|remote-exec]]uting [[BIS_fnc_endMission]] allows for more options: | ||
<code>["MyEnding", [[true]], 3] [[remoteExec]] ["BIS_fnc_endMission", 0, [[true]]];</code> | |||
}} | |||
|s1= endType call [[BIS_fnc_endMissionServer]] | |s1= endType call [[BIS_fnc_endMissionServer]] |
Revision as of 19:51, 21 August 2021
Description
- Description:
- Ends the mission properly for all players in a multiplayer environment.
- 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
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