allDead: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("serv...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma2oa | | arma2oa | ||
|1.57 | |1.57 | ||
|gr1= Object Detection | |gr1= Object Detection | ||
| Return a list of all dead units including agents and destroyed vehicles. Dead units may be in vehicles. | | Return a list of all dead units including agents and destroyed vehicles. Dead units may be in vehicles. | ||
| [[allDead]] | | [[allDead]] | ||
| [[Array]] | | [[Array]] | ||
|x1= <code>{ [[deleteVehicle]] _x } [[forEach]] [[allDead]];</code> | |x1= <code>{ [[deleteVehicle]] _x } [[forEach]] [[allDead]];</code> | ||
|x2= allAlive: <code>_all = [[allUnits]] + [[vehicles]]; | |x2= allAlive: <code>_all = [[allUnits]] + [[vehicles]]; | ||
Line 19: | Line 19: | ||
_all [[pushBack]] [[agent]] _x; | _all [[pushBack]] [[agent]] _x; | ||
} [[forEach]] ([[agents]] - [<nowiki/>[[teamMemberNull]]]); | } [[forEach]] ([[agents]] - [<nowiki/>[[teamMemberNull]]]); | ||
allAlive = _all - [[allDead]];</code> | allAlive = _all - [[allDead]];</code> | ||
| [[allDeadMen]], [[allUnits]], [[allGroups]], [[playableUnits]], [[switchableUnits]], [[units]], [[vehicles]], [[allCurators]] | | [[allDeadMen]], [[allUnits]], [[allGroups]], [[playableUnits]], [[switchableUnits]], [[units]], [[vehicles]], [[allCurators]] | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= |
Revision as of 00:00, 18 January 2021
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:
{ 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