allDead: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "$1$2</code>")
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
Line 18: Line 18:
|r1= [[Array]]
|r1= [[Array]]


|x1= <code>{ deleteVehicle _x } forEach allDead;</code>
|x1= <sqf>{ deleteVehicle _x } forEach allDead;</sqf>


|x2= allAlive:
|x2= allAlive:

Revision as of 11:21, 13 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


Posted on April 6, 2017 - 15:40 (UTC)
Ebay
This also returns bodies hidden with hideBody until they are deleted. Tested in A2OA 1.63.131129