Arma 3 Scripting

Command in Object Detection, Positions

unitsBelowHeight

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns units in group/array below given Above Terrain Level (ATL) altitude.

Note

an object's ATL altitude can be found with _altitude = (getPosATL _obj) select 2;.

Syntax

Syntax 1

units unitsBelowHeight height

Parameters:

Returns: Array of Objects

Syntax 2

group unitsBelowHeight height

Parameters:

Returns: Array of Objects

Examples

Example 1

_allOnGroudUnits = group player unitsBelowHeight 10;

Example 2

_units = allUnits unitsBelowHeight 30;

See also

allUnits · getPosATL · group