Arma 3 Scripting

Command in Object Detection

allDead

Also available as Markdown and JSON, or read the original wiki page.

Description

Return a list of all dead units including agents and destroyed vehicles. Dead units may be in vehicles.

Syntax

allDead

Returns: Array of Objects

Examples

Example 1

{ deleteVehicle _x } forEach allDead;

Example 2

allAlive:

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

See also

allDeadMen · allUnits · allGroups · playableUnits · switchableUnits · units · vehicles · allCurators

Community notes

Ebay

This also returns bodies hidden with hideBody until they are deleted. Tested in A2OA 1.63.131129