allDead: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?]]" to "{{GameCategory|tkoh|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma2oa |Game name= | | arma2oa |Game name= | ||
Line 7: | Line 6: | ||
|gr1= Object Detection |GROUP1= | |gr1= Object Detection |GROUP1= | ||
| Return a list of all dead units including agents and destroyed vehicles. Dead units may be in vehicles. |DESCRIPTION= | | Return a list of all dead units including agents and destroyed vehicles. Dead units may be in vehicles. |DESCRIPTION= | ||
| [[allDead]] |SYNTAX= | | [[allDead]] |SYNTAX= | ||
| [[Array]] |RETURNVALUE= | | [[Array]] |RETURNVALUE= | ||
|x1= <code>{ [[deleteVehicle]] _x } [[forEach]] [[allDead]];</code>|EXAMPLE1= | |x1= <code>{ [[deleteVehicle]] _x } [[forEach]] [[allDead]];</code>|EXAMPLE1= | ||
Line 24: | Line 20: | ||
} [[forEach]] ([[agents]] - [<nowiki/>[[teamMemberNull]]]); | } [[forEach]] ([[agents]] - [<nowiki/>[[teamMemberNull]]]); | ||
allAlive = _all - [[allDead]];</code> |EXAMPLE2= | allAlive = _all - [[allDead]];</code> |EXAMPLE2= | ||
| [[allDeadMen]], [[allUnits]], [[allGroups]], [[playableUnits]], [[switchableUnits]], [[units]], [[vehicles]], [[allCurators]] |SEEALSO= | | [[allDeadMen]], [[allUnits]], [[allGroups]], [[playableUnits]], [[switchableUnits]], [[units]], [[vehicles]], [[allCurators]] |SEEALSO= |
Revision as of 00:00, 17 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