allDead: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*)<\/code>" to "<code>$1$2$3</code>")
m (Some wiki formatting)
 
Line 21: Line 21:


|x2= allAlive:
|x2= allAlive:
<code>_all = allUnits + vehicles;
<sqf>_all = allUnits + vehicles;
{
{
_all pushBack agent _x;
_all pushBack agent _x;
} forEach (agents - [teamMemberNull]);
} forEach (agents - [teamMemberNull]);
allAlive = _all - allDead;</code>
allAlive = _all - allDead;</sqf>


|seealso= [[allDeadMen]] [[allUnits]] [[allGroups]] [[playableUnits]] [[switchableUnits]] [[units]] [[vehicles]] [[allCurators]]
|seealso= [[allDeadMen]] [[allUnits]] [[allGroups]] [[playableUnits]] [[switchableUnits]] [[units]] [[vehicles]] [[allCurators]]
}}
}}


 
{{Note
<dl class="command_description">
|user= Ebay
 
|timestamp= 20170406154000
<dt></dt>
|text= This also returns bodies hidden with [[hideBody]] until they are deleted. Tested in A2OA 1.63.131129
<dd class="notedate">Posted on April 6, 2017 - 15:40 (UTC)</dd>
}}
<dt class="note">[[User:Ebay|Ebay]]</dt>
<dd class="note">
This also returns bodies hidden with [[hideBody]] until they are deleted. Tested in A2OA 1.63.131129
</dd>
 
</dl>

Latest revision as of 13:02, 14 May 2022

Hover & click on the images for description

Description

Description:
Return a list of all dead units including agents and destroyed vehicles. Dead units may be in vehicles.
Groups:
Object Detection

Syntax

Syntax:
allDead
Return Value:
Array

Examples

Example 1:
{ deleteVehicle _x } forEach allDead;
Example 2:
allAlive:
_all = allUnits + vehicles; { _all pushBack agent _x; } forEach (agents - [teamMemberNull]); allAlive = _all - allDead;

Additional Information

See also:
allDeadMen allUnits allGroups playableUnits switchableUnits units vehicles allCurators

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
Ebay - c
Posted on Apr 06, 2017 - 15:40 (UTC)
This also returns bodies hidden with hideBody until they are deleted. Tested in A2OA 1.63.131129