allDead: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|= Game name" to "|Game name=") |
Lou Montana (talk | contribs) m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>") |
||
(56 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma2oa | | |game1= arma2oa | ||
|version1= 1.57 | |||
|1. | |game2= tkoh | ||
|version2= 1.00 | |||
| | |game3= arma3 | ||
|version3= 0.50 | |||
| | |gr1= Object Detection | ||
| | |descr= Return a list of all dead units including agents and destroyed vehicles. Dead units may be in vehicles. | ||
|s1= [[allDead]] | |||
| | |r1= [[Array]] | ||
|x1= <sqf>{ deleteVehicle _x } forEach allDead;</sqf> | |||
| | |x2= allAlive: | ||
<sqf> | |||
_all = allUnits + vehicles; | |||
{ | |||
_all pushBack agent _x; | |||
} forEach (agents - [teamMemberNull]); | |||
allAlive = _all - allDead; | |||
</sqf> | |||
| | |seealso= [[allDeadMen]] [[allUnits]] [[allGroups]] [[playableUnits]] [[switchableUnits]] [[units]] [[vehicles]] [[allCurators]] | ||
}} | }} | ||
{{Note | |||
|user= Ebay | |||
|timestamp= 20170406154000 | |||
|text= This also returns bodies hidden with [[hideBody]] until they are deleted. Tested in A2OA 1.63.131129 | |||
}} | |||
This also returns bodies hidden with [[hideBody]] until they are deleted. Tested in A2OA 1.63.131129 | |||
Latest revision as of 21:37, 2 September 2024
Description
- Description:
- Return a list of all dead units including agents and destroyed vehicles. Dead units may be in vehicles.
- Groups:
- Object Detection
Syntax
Examples
- Example 1:
- Example 2:
- allAlive:
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
- 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