Garry's Mod Wiki

CNavArea:GetAdjacentCount

  number CNavArea:GetAdjacentCount()

Description

Returns the amount of CNavAreas that have a connection ( one and two way ) from this CNavArea.

See CNavArea:GetAdjacentCountAtSide for a function that only returns area count from one side/direction.

Returns

1 number
The amount of CNavAreas that have a connection ( one and two way ) from this CNavArea.