Description
Returns mission end type and how it was ended or an empty array [] is mission was not ended.
Syntax
missionEnd
Returns: Array with [endType, failMission, isFailed] (or empty array if the mission is not ending):
- endType : String - the ending that was passed to failMission or endMission
- failMission: Boolean - true if the mission ended via failMission, false if via endMission
- isFailed: Boolean - engine idea of how mission ended. For example if mission ended via failMission but the type of ending was not "Killed", isFailed is false
Examples
Example 1
private _endInfo = missionEnd;
Example 2
missionEnd params ["_endType", "_failMission", "_isFailed"];