Arma 3 Scripting

unitsBelowHeight

  • Global argument
  • Arma 3 v0.50
  • First in Arma 2 v1.04

Command · also in Positions · Markdown · JSON · 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