BIS fnc endMissionServer: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (typo "YOUR WON" > "YOU WON")
m (Fix arguments and example)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Ends the mission properly for all players in a multiplayer environment|= Description
| Ends the mission properly for all players in a multiplayer environment. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


|end type call BIS_fnc_endMissionServer |= Syntax
| endType call [[BIS_fnc_endMissionServer]] |= Syntax


|p1= end type: [[String]]<br>
|p1= endType: [[String]] - class name of ending defined in [[Description.ext#CfgDebriefing|CfgDebriefing]].<br />
Class name of ending defined in CfgDebriefing<br>
Can be '''custom''' or one of dynamically calculated ones:
Can be custom or one of dynamically calculated ones:<br>
* "EveryoneWon" - show "MISSION COMPLETED" to everyone
"EveryoneWon" - show "MISSION COMPLETED" to everyone<br>
* "EveryoneLost" - show "MISSION FAILED" to everyone
"EveryoneLost" - show "MISSION FAILED" to everyone<br>
* "SideScore" - show "YOUR SIDE WON" to side with largest score
"SideScore" - show "YOUR SIDE WON" to side with largest score<br>
* "GroupScore" - show "YOUR GROUP WON" to group with largest score
"GroupScore" - show "YOUR GROUP WON" to group with largest score<br>
* "PlayerScore" - show "YOU WON" to player with largest score
"PlayerScore" - show "YOU WON" to player with largest score<br>
&nbsp; |= Parameter 1
|= PARAMETER1


| [[BOOL]]|= RETURNVALUE
| [[Boolean]] |= Return value


 
|x1= <code>"SideScore" [[call]] [[BIS_fnc_endMissionServer]];</code>|= Example 1
|x1= <code>"SideScore" call BIS_fnc_endMissionServer</code>|= EXAMPLE1
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[BIS_fnc_endMission]], [[failMission]], [[forceEnd]], [[endMission]] |= SEEALSO
| [[BIS_fnc_endMission]], [[failMission]], [[forceEnd]], [[endMission]] |= See also


|  |= MPBEHAVIOUR
|  |= Multiplayer
____________________________________________________________________________________________
____________________________________________________________________________________________
}}
}}

Revision as of 14:33, 15 May 2018

Hover & click on the images for description

Description

Description:
Ends the mission properly for all players in a multiplayer environment.
Execution:
call
Groups:
Uncategorised

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_endMissionfailMissionforceEndendMission

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

Notes

Bottom Section