allDeadMen: Difference between revisions
Lou Montana (talk | contribs) m (Some wiki formatting) |
BrettMayson (talk | contribs) mNo edit summary |
||
| (One intermediate revision by one other user not shown) | |||
| Line 10: | Line 10: | ||
|s1= [[allDeadMen]] | |s1= [[allDeadMen]] | ||
|r1= [[Array]] | |r1= [[Array]] of [[Object]]s | ||
|x1= <sqf>{ deleteVehicle _x } forEach allDeadMen;</sqf> | |x1= <sqf>{ deleteVehicle _x } forEach allDeadMen;</sqf> | ||
| Line 20: | Line 20: | ||
|user= Pierre MGI | |user= Pierre MGI | ||
|timestamp= 20151015040800 | |timestamp= 20151015040800 | ||
|text= As dead men are civilian side, don't try to count them with <sqf inline>{ side _x isEqualTo | |text= As dead men are civilian side, don't try to count them with <sqf inline>{ side _x isEqualTo east } count allDeadMen;</sqf> result will always be 0.<br> | ||
Use the configfile "side" instead: | Use the configfile "side" instead: | ||
<sqf> | <sqf> | ||
Latest revision as of 09:16, 1 January 2026
Description
- Description:
- Return a list of dead units including agents. Dead unit might be inside vehicle.
- Groups:
- Object Detection
Syntax
- Syntax:
- allDeadMen
- Return Value:
- Array of Objects
Examples
- Example 1:
Additional Information
- See also:
- allDead allUnits allGroups playableUnits switchableUnits units vehicles allCurators getCorpse
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note