allDead: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*)<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*)<\/code>" to "<code>$1$2$3</code>") |
||
Line 23: | Line 23: | ||
<code>_all = allUnits + vehicles; | <code>_all = allUnits + vehicles; | ||
{ | { | ||
_all pushBack | _all pushBack agent _x; | ||
} [[forEach]] ([[agents]] - [[[teamMemberNull]]]); | } [[forEach]] ([[agents]] - [[[teamMemberNull]]]); | ||
allAlive = _all - allDead;</code> | allAlive = _all - allDead;</code> |
Revision as of 10:30, 13 May 2022
Description
- Description:
- Return a list of all dead units including agents and destroyed vehicles. Dead units may be in vehicles.
- Groups:
- Object Detection
Syntax
Examples
- Example 1:
- Example 2:
- allAlive:
_all = allUnits + vehicles; { _all pushBack agent _x; } forEach (agents - [[[teamMemberNull]]]); allAlive = _all - allDead;
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note