Garry's Mod Wiki

navmesh.Find

  table navmesh.Find( Vector pos, number radius, number stepHeight, number dropHeight )

Description

Returns a list of areas within distance, used to find hiding spots by NextBots for example.

Arguments

1 Vector pos
The position to search around. This position will be used to find the closest area to search from.
2 number radius
Radius to search within
3 number stepHeight
Maximum step up height allowed
4 number dropHeight
Maximum step down (fall distance) allowed

Returns

1 table
A list of found CNavAreas.