allDead: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Command " to "{{RV|type=command ")
m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(37 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma2oa
|game1= arma2oa
|version1= 1.57


|1.57
|game2= tkoh
|version2= 1.00
 
|game3= arma3
|version3= 0.50


|gr1= Object Detection
|gr1= Object Detection


| Return a list of all dead units including agents and destroyed vehicles. Dead units may be in vehicles.
|descr= Return a list of all dead units including agents and destroyed vehicles. Dead units may be in vehicles.


| [[allDead]]
|s1= [[allDead]]


| [[Array]]
|r1= [[Array]]


|x1= <code>{ [[deleteVehicle]] _x } [[forEach]] [[allDead]];</code>
|x1= <sqf>{ deleteVehicle _x } forEach allDead;</sqf>


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


| [[allDeadMen]], [[allUnits]], [[allGroups]], [[playableUnits]], [[switchableUnits]], [[units]], [[vehicles]], [[allCurators]]
|seealso= [[allDeadMen]] [[allUnits]] [[allGroups]] [[playableUnits]] [[switchableUnits]] [[units]] [[vehicles]] [[allCurators]]
}}
}}


 
{{Note
 
|user= Ebay
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
|timestamp= 20170406154000
{{GameCategory|arma2|Scripting Commands}}
|text= This also returns bodies hidden with [[hideBody]] until they are deleted. Tested in A2OA 1.63.131129
{{GameCategory|arma3|Scripting Commands}}
}}
{{GameCategory|tkoh|Scripting Commands}}
 
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on April 6, 2017 - 15:40 (UTC)</dd>
<dt class="note">[[User:Ebay|Ebay]]</dt>
<dd class="note">
This also returns bodies hidden with [[hideBody]] until they are deleted. Tested in A2OA 1.63.131129
</dd>
</dl>
<!-- DISCONTINUE Notes -->

Latest revision as of 21:37, 2 September 2024

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:
Object Detection

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:
allDeadMen allUnits allGroups playableUnits switchableUnits units vehicles allCurators

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
Ebay - c
Posted on Apr 06, 2017 - 15:40 (UTC)
This also returns bodies hidden with hideBody until they are deleted. Tested in A2OA 1.63.131129