{"name":"allDeadMen","title":"allDeadMen","type":"command","url":"https://community.bistudio.com/wiki/allDeadMen","revid":378914,"updated":"2026-08-12T19:45:30Z","groups":["Object Detection"],"status":"ok","games":{"arma3":"0.50"},"since":"arma3 0.50","arma3_since":"0.50","description":"Return a list of dead units including agents. Dead unit might be inside vehicle.","syntaxes":[{"syntax":"allDeadMen","params":[],"returns":{"type":"Array of Objects","type_expr":"Array<Object>"},"form":"nullary"}],"examples":[{"code":["{ deleteVehicle _x } forEach allDeadMen;"]}],"see_also":["allDead","allUnits","allGroups","playableUnits","switchableUnits","units","vehicles","allCurators","getCorpse"],"notes":[{"user":"Pierre MGI","date":"2015-10-15T04:08:00Z","text":"As dead men are civilian side, don't try to count them with `{ side _x isEqualTo east } count allDeadMen;` result will always be 0.\nUse the configfile \"side\" instead:\n\n```sqf\n0 spawn\n{\n    while { true } do\n    {\n        sleep 0.1;\n        _westScore =\n        {\n            getNumber (configFile >> \"CfgVehicles\" >> typeOf _x >> \"side\") == 0\n        } count allDeadMen;\n        hintSilent format [\"East killed: %1\", _westScore];\n    };\n};\n```"}]}