missionEnd: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (dev → main) |
Lou Montana (talk | contribs) m (Add example) |
||
Line 10: | Line 10: | ||
|s1= [[missionEnd]] | |s1= [[missionEnd]] | ||
|r1= [[Array]] - in format | |r1= [[Array]] - in format [endType, failMission, isFailed] (or empty array if the mission is not ending), where: | ||
* endType : [[String]] - the 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]] | * 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]] | * 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]] | ||
|x1= <code>_misssionEnd = [[missionEnd]]</code> | |x1= <code>[[private]] _misssionEnd = [[missionEnd]];</code> | ||
|x2= <code>[[missionEnd]] [[params]] ["_endType", "_failMission", "_isFailed"];</code> | |||
|seealso= [[endMission]], [[failMission]], [[forceEnd]] | |seealso= [[endMission]], [[failMission]], [[forceEnd]] | ||
}} | }} |
Revision as of 11:30, 17 November 2021
Description
- Description:
- Returns mission end type and how it was ended or an empty array [] is mission was not ended.
- Groups:
- Mission Information
Syntax
- Syntax:
- missionEnd
- Return Value:
- Array - in format [endType, failMission, isFailed] (or empty array if the mission is not ending), where:
- 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 _misssionEnd = missionEnd;
- Example 2:
missionEnd params ["_endType", "_failMission", "_isFailed"];
Additional Information
- See also:
- endMissionfailMissionforceEnd
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