missionEnd: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{RV|type=command |game1= arma3 |version1= 2.06 |arg= |eff= |branch= dev |gr1= Mission Information |descr= Returns mission end type and how it was ended or an empty arra...")
 
m (Some wiki formatting)
(4 intermediate revisions by the same user not shown)
Line 3: Line 3:
|game1= arma3
|game1= arma3
|version1= 2.06
|version1= 2.06
|arg=
|eff=
|branch= dev


|gr1= Mission Information
|gr1= Mission Information
Line 16: Line 10:
|s1= [[missionEnd]]
|s1= [[missionEnd]]


|r1= [[Array]] - in format: [endType, failMission, isFailed] or empty array [], where:
|r1= [[Array]] - in format [endType, failMission, isFailed] (or empty array if the mission is not ending), where:
* endType : [[String]] - the ending [[String]] that was passed to [[failMission]] or [[endMission]]
* 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= <sqf>private _endInfo = missionEnd;</sqf>


|x1= <code>_misssionEnd = [[missionEnd]]</code>
|x2= <sqf>missionEnd params ["_endType", "_failMission", "_isFailed"];</sqf>


|seealso= [[endMission]], [[failMission]], [[forceEnd]]
|seealso= [[endMission]] [[failMission]] [[forceEnd]]
}}
}}

Revision as of 19:15, 5 May 2022

Hover & click on the images for description

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:

Examples

Example 1:
private _endInfo = missionEnd;
Example 2:
missionEnd params ["_endType", "_failMission", "_isFailed"];

Additional Information

See also:
endMission failMission forceEnd

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