allDeadMen

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 3 version 0.50
  

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
0.50

Description

Description:
Return a list of dead units including agents. Dead unit might be inside vehicle.

Syntax

Syntax:
allDeadMen
Return Value:
Array

Examples

Example 1:
{ deleteVehicle _x } forEach allDeadMen;

Additional Information

Multiplayer:
-
See also:
allDeadallUnitsallGroupsplayableUnitsswitchableUnitsunitsvehiclesallCurators

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Posted on 17 Oct, 2009
Pierre MGI
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:
0 = [] spawn {while {true} do {sleep 0.1;
_westScore = {getNumber (configfile >> "CfgVehicles" >> typeOf _x >> "side") == 0} count allDeadMen;
hintSilent format ["East killed: %1",_westScore]};};

Bottom Section