Garry's Mod Wiki

navmesh.GetNavArea

  CNavArea navmesh.GetNavArea( Vector pos, number beneathLimit )

Description

Returns the Nav Area contained in this position that also satisfies the elevation limit.

This function will properly see blocked CNavAreas. See navmesh.GetNearestNavArea.

Arguments

1 Vector pos
The position to search for.
2 number beneathLimit
The elevation limit at which the Nav Area will be searched.

Returns

1 CNavArea
The nav area.