allDead: Difference between revisions
Jump to navigation
Jump to search
m (Bot: Reverted to revision 99360 by ebay on 2017-04-06T15:40:56Z) |
m (template:command argument fix) |
||
Line 12: | Line 12: | ||
| '''allDead''' |= Syntax | | '''allDead''' |= Syntax | ||
| [[Array]] |= | | [[Array]] |RETURNVALUE= | ||
|x1= <code>{ [[deleteVehicle]] _x } [[forEach]] [[allDead]];</code>|= | |x1= <code>{ [[deleteVehicle]] _x } [[forEach]] [[allDead]];</code>|EXAMPLE1= | ||
|x2= allAlive: <code>_all = [[allUnits]] + [[vehicles]]; | |x2= allAlive: <code>_all = [[allUnits]] + [[vehicles]]; | ||
{ | { | ||
_all [[pushBack]] [[agent]] _x; | _all [[pushBack]] [[agent]] _x; | ||
} [[forEach]] ([[agents]] - <nowiki>[</nowiki>[[teamMemberNull]]]); | } [[forEach]] ([[agents]] - <nowiki>[</nowiki>[[teamMemberNull]]]); | ||
allAlive = _all - [[allDead]];</code>|= | allAlive = _all - [[allDead]];</code>|EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[allDeadMen]], [[allUnits]], [[allGroups]], [[playableUnits]], [[switchableUnits]], [[units]], [[vehicles]], [[allCurators]] |= | | [[allDeadMen]], [[allUnits]], [[allGroups]], [[playableUnits]], [[switchableUnits]], [[units]], [[vehicles]], [[allCurators]] |SEEALSO= | ||
| |= | | |MPBEHAVIOUR= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
}} | }} |
Revision as of 10:28, 7 April 2019
Description
- Description:
- Return a list of all dead units including agents and destroyed vehicles. Dead units may be in vehicles.
- Groups:
- Uncategorised
Syntax
- Syntax:
- allDead
- Return Value:
- Array
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
Notes
Bottom Section
Categories:
- Scripting Commands
- Introduced with Arma 2: Operation Arrowhead version 1.57
- Arma 2: Operation Arrowhead: New Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands ArmA2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters
- ArmA 2 OA: New Scripting Commands List