Arma 3 Scripting

Function in Object Manipulation

BIS_fnc_setHeight

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

Description

Set an object's altitude.

Syntax

Syntax 1

[target, height, position, mode] call BIS_fnc_setHeight

Parameters:

Returns: Boolean - true when done

Syntax 2

[height, mode] call BIS_fnc_setHeight > [!IMPORTANT] > This syntax uses `this` and is therefore meant to be used in init fields. Not to be used in MP.

Parameters:

Returns: Boolean - true when done

Examples

Example 1

// will place player's vehicle on "myHeightMarker", 50m above terrain
[vehicle player, 50, getMarkerPos "myHeightMarker", "ATL"] call BIS_fnc_setHeight;

Example 2

// will set the "this" object 50m above sea level at its position
// use where "this" has a value like in an init field
[50, "ASL"] call BIS_fnc_setHeight;

See also

setPos · setPosASL · setPosATL