allDead: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "Category:Scripting Commands ArmA2" to "Category:Scripting Commands Arma 2") |
Lou Montana (talk | contribs) m (Text replacement - " <nowiki>[</nowiki>" to " [<nowiki/>") |
||
Line 20: | Line 20: | ||
{ | { | ||
_all [[pushBack]] [[agent]] _x; | _all [[pushBack]] [[agent]] _x; | ||
} [[forEach]] ([[agents]] - <nowiki | } [[forEach]] ([[agents]] - [<nowiki/>[[teamMemberNull]]]); | ||
allAlive = _all - [[allDead]];</code> |EXAMPLE2= | allAlive = _all - [[allDead]];</code> |EXAMPLE2= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ |
Revision as of 11:30, 19 March 2020
Description
- Description:
- Return a list of all dead units including agents and destroyed vehicles. Dead units may be in vehicles.
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
{ deleteVehicle _x } forEach allDead;
- 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