BIS fnc endMissionServer: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|gr([0-9]+) = " to "|gr$1= ") |
m (formatting) |
||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| arma3 | |game1= arma3 | ||
|1.00 | |version1= 1.00 | ||
|gr1= Multiplayer | |gr1= Multiplayer | ||
Line 9: | Line 9: | ||
|serverExec= server | |serverExec= server | ||
| | |eff= global | ||
| | |descr= Ends the mission properly for all players in a multiplayer environment. | ||
{{Feature|Informative|This function is somewhat deprecated. You can [[remoteExec]] [[BIS_fnc_endMission]] instead and have more options available.}} | |||
|p1= endType: [[String]] - | |s1= endType call [[BIS_fnc_endMissionServer]] | ||
|p1= endType: [[String]] - Class name of ending defined in [[Description.ext#CfgDebriefing|CfgDebriefing]].<br> | |||
Can be '''custom''' or one of dynamically calculated ones: | Can be '''custom''' or one of dynamically calculated ones: | ||
* "EveryoneWon" - | * "EveryoneWon" - Show "MISSION COMPLETED" to everyone | ||
* "EveryoneLost" - | * "EveryoneLost" - Show "MISSION FAILED" to everyone | ||
* "SideScore" - | * "SideScore" - Show "YOUR SIDE WON" to side with largest score | ||
* "GroupScore" - | * "GroupScore" - Show "YOUR GROUP WON" to group with largest score | ||
* "PlayerScore" - | * "PlayerScore" - Show "YOU WON" to player with largest score | ||
| [[Boolean]] | |r1= [[Boolean]] | ||
|x1= <code>"SideScore" [[call]] [[BIS_fnc_endMissionServer]];</code> | |x1= <code>"SideScore" [[call]] [[BIS_fnc_endMissionServer]];</code> | ||
| [[BIS_fnc_endMission]], [[failMission]], [[forceEnd]], [[endMission]] | |seealso= [[BIS_fnc_endMission]], [[failMission]], [[forceEnd]], [[endMission]] | ||
}} | |||
Revision as of 10:40, 12 May 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