Garry's Mod Wiki

CNavArea:GetClosestPointOnArea

  Vector CNavArea:GetClosestPointOnArea( Vector pos )

Description

Returns the closest point of this Nav Area from the given position.

Arguments

1 Vector pos
The given position, can be outside of the Nav Area bounds.

Returns

1 Vector
The closest position on this Nav Area.