{"name":"allDeadMen","operator":null,"title":"allDeadMen","type":"command","url":"https://community.bistudio.com/wiki/allDeadMen","revid":378914,"updated":"2026-08-12T19:45:30Z","groups":["Object Detection"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma3","name":"Arma 3","version":"0.50"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Return a list of dead units including agents. Dead unit might be inside vehicle.","syntaxes":[{"syntax":"allDeadMen","since":null,"effect":null,"exec":null,"params":[],"returns":{"type":"Array of Objects","types":["Array","Object"],"description":null,"text":"Array of Objects"},"form":"nullary","operator":null,"left":null,"right":null}],"examples":[{"text":"```sqf\n{ deleteVehicle _x } forEach allDeadMen;\n```","code":["{ deleteVehicle _x } forEach allDeadMen;"]}],"multiplayer":null,"problems":null,"aliases":[],"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.\n\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```"}],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Object Detection","Introduced with Arma 3 version 0.50","Scripting Commands"]}