unitsBelowHeight: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \{\{GameCategory *\| *arma2 *\| *(New )?Scripting Commands\}\}" to "") |
Lou Montana (talk | contribs) m (Text replacement - "\| *(arg|eff|mp|serverExec|gr[0-9]) *= *(.*) * *\|([^=0-9]{12})" to "|$1=$2 |descr=$3") |
||
Line 19: | Line 19: | ||
|gr2= Positions | |gr2= Positions | ||
| Returns units in group/array below given Above Terrain Level (ATL) height. | |descr= Returns units in group/array below given Above Terrain Level (ATL) height. | ||
{{Feature | Informative | unit's ATL height can be found with {{ic|_height {{=}} ([[getPosATL]] _unit) [[select]] 2;}}}} | {{Feature | Informative | unit's ATL height can be found with {{ic|_height {{=}} ([[getPosATL]] _unit) [[select]] 2;}}}} | ||
Revision as of 21:28, 13 June 2021
Description
- Description:
- Returns units in group/array below given Above Terrain Level (ATL) height.
- Groups:
- Object DetectionPositions
Syntax
- Syntax:
- units unitsBelowHeight height
- Parameters:
- units: Array of Objects
- height: Number - height above terrain level (PositionATL)
- Return Value:
- Array of Objects
Alternative Syntax
- Syntax:
- group unitsBelowHeight height
- Parameters:
- group: Group - AI group
- height: Number - height above terrain level (PositionATL)
- Return Value:
- Array of Objects
Examples
- Example 1:
_allOnGroudUnits = group player unitsBelowHeight 10;
- Example 2:
_units = allUnits unitsBelowHeight 30;
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