allDead: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (see also)
(allAlive example)
Line 15: Line 15:




|x1= <code>{ deleteVehicle _x } forEach allDead;</code>|= EXAMPLE1  
|x1= <code>{ [[deleteVehicle]] _x } [[forEach]] [[allDead]];</code>|= EXAMPLE1
|x2= allAlive: <code>_all = [[allUnits]] + [[vehicles]];
{
_all [[pushBack]] [[agent]] _x;
} [[forEach]] ([[agents]] - <nowiki>[</nowiki>[[teamMemberNull]]]);
allAlive = _all - [[allDead]];</code>|= EXAMPLE1  


____________________________________________________________________________________________
____________________________________________________________________________________________

Revision as of 21:10, 30 July 2014

Hover & click on the images for description

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

See also:
allDeadMenallUnitsallGroupsplayableUnitsswitchableUnitsunitsvehiclesallCurators

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