navmesh.GetGroundHeight

From Garry's Mod
Jump to: navigation, search
 navmesh.GetGroundHeight( )

Contents

Description

Finds the closest standable ground at, above, or below the provided position.

NOTE

The ground must have at least 32 units of empty space above it to be considered by this function, unless 16 layers are tested without finding valid ground.

Arguments

Vector pos

Position to find the closest ground for.

Returns

number

The height of the ground layer.

Returns

Vector

The normal of the ground layer.
Personal tools
Navigation