allDead: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "[[Category:ArmA 2 OA: New Scripting Commands List" to "[[Category:Arma 2: Operation Arrowhead: New Scripting Commands List") |
Lou Montana (talk | contribs) m (Try to remove (redundant?) Category:Arma 2: Operation Arrowhead: New Scripting Commands List category) |
||
Line 12: | Line 12: | ||
| [[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 21: | Line 21: | ||
_all [[pushBack]] [[agent]] _x; | _all [[pushBack]] [[agent]] _x; | ||
} [[forEach]] ([[agents]] - <nowiki>[</nowiki>[[teamMemberNull]]]); | } [[forEach]] ([[agents]] - <nowiki>[</nowiki>[[teamMemberNull]]]); | ||
allAlive = _all - [[allDead]];</code>|EXAMPLE2= | allAlive = _all - [[allDead]];</code> |EXAMPLE2= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 42: | Line 42: | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | ||
<!-- CONTINUE Notes --> | <!-- CONTINUE Notes --> |
Revision as of 13:06, 19 September 2019
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