allDead: Difference between revisions

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


| arma2oa |= Game name
|game1= arma2oa
|version1= 1.57


|1.57|= Game version
|game2= tkoh
____________________________________________________________________________________________
|version2= 1.00


| Return a list of all dead units. Dead units may be in vehicles. |= Description
|game3= arma3
____________________________________________________________________________________________
|version3= 0.50


| '''allDead''' |= Syntax
|gr1= Object Detection


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


|s1= [[allDead]]


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


____________________________________________________________________________________________
|x1= <sqf>{ deleteVehicle _x } forEach allDead;</sqf>


| [[allUnits]], [[allGroups]], [[playableUnits]], [[switchableUnits]], [[units]], [[vehicles]] |= SEEALSO
|x2= allAlive:
<sqf>
_all = allUnits + vehicles;
{
_all pushBack agent _x;
} forEach (agents - [teamMemberNull]);
allAlive = _all - allDead;
</sqf>


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


<h3 style='display:none'>Notes</h3>
{{Note
<dl class='command_description'>
|user= Ebay
<!-- Note Section BEGIN -->
|timestamp= 20170406154000
 
|text= This also returns bodies hidden with [[hideBody]] until they are deleted. Tested in A2OA 1.63.131129
<!-- Note Section END -->
}}
</dl>
 
<h3 style='display:none'>Bottom Section</h3>
 
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:ArmA 2 OA: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]

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