---
name: "allDeadMen"
type: command
status: ok
groups: ["Object Detection"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/allDeadMen
revid: 378914
updated: 2026-08-12T19:45:30Z
---

# allDeadMen

*Command · Object Detection · Arma 3 v0.50*

## Description

Return a list of dead units including [agents](../commands/agents.md). Dead unit might be inside vehicle.

## Syntax

```sqf
allDeadMen
```

**Returns:** [Array](../topics/Array.md) of [Object](../topics/Object.md)s

## Examples

### Example 1

```sqf
{ deleteVehicle _x } forEach allDeadMen;
```

## See also

[allDead](../commands/allDead.md) · [allUnits](../commands/allUnits.md) · [allGroups](../commands/allGroups.md) · [playableUnits](../commands/playableUnits.md) · [switchableUnits](../commands/switchableUnits.md) · [units](../commands/units.md) · [vehicles](../commands/vehicles.md) · [allCurators](../commands/allCurators.md) · [getCorpse](../commands/getCorpse.md)

## Community notes

**Pierre MGI** — 2015-10-15

As dead men are civilian side, don't try to count them with `{ side _x isEqualTo east } count allDeadMen;` result will always be 0.

Use the configfile "side" instead:

```sqf
0 spawn
{
    while { true } do
    {
        sleep 0.1;
        _westScore =
        {
            getNumber (configFile >> "CfgVehicles" >> typeOf _x >> "side") == 0
        } count allDeadMen;
        hintSilent format ["East killed: %1", _westScore];
    };
};
```

<sub>Source: [BI Community Wiki — allDeadMen](https://community.bistudio.com/wiki/allDeadMen) (revision 378914).</sub>
