Page tree
Skip to end of metadata
Go to start of metadata




Introduced in

Version:1.21

Description

Description:Finds the highest surface area for a specified position. Takes into consideration any buildings, objects, vehicles, and so on, present at the given position.

Syntax

Syntax:[position, maxheight, radius] call fn_vbs_aboveGround
Parameters:
  • position: Position2D or Position3D - Position to check.
  • maxheight: Number - (Optional) Indicates from which maximum height to check (default: 20 meters).
  • radius: Number - (Optional) Radius to check in (default: 1 meter).
Return Value:Number - Height above ground.

Warning

When using functions in VBS versions older than 3.4, certain limitations and requirements should be kept in mind - the main ones being that capitalization of the function name is crucial, and that #include "\vbs2\headers\function_library.hpp" has to be included in every script that utilizes it. More Functions A-Z.

Examples

Examples:
[position player] call fn_vbs_aboveGround

Additional Information

See also: 
Multiplayer: 
Problems: 

Notes