Description
Set an object's altitude.
Syntax
Syntax 1
[target, height, position, mode] call BIS_fnc_setHeight
Parameters:
target: Object - affected objectheight: Number - (Optional, default 0) height to setposition: Position - (Optional, defaultposition target) position to place the target with calculated heightmode: String - (Optional, default "ROADWAY") can be:
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:
height: Number - (Optional, default 0) height to setmode: String - (Optional, default "ROADWAY") can be:
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;