Garry's Mod Wiki

CNavArea:GetAdjacentAreasAtSide

  table CNavArea:GetAdjacentAreasAtSide( number navDir )

Description

Returns a table of all the CNavAreas that have a ( one and two way ) connection from this CNavArea in given direction.

If an area has a one-way incoming connection to this CNavArea, then it will not be returned from this function, use CNavArea:GetIncomingConnections to get all incoming connections.

See CNavArea:GetAdjacentAreas for a function that returns all areas from all sides/directions.

Arguments

1 number navDir
The direction, in which to look for CNavAreas, see NavDir enum.

Returns

1 table
A table of all CNavArea that have a ( one and two way ) connection from this CNavArea in given direction.

Returns an empty table if this area has no outgoing connections to any other areas in given direction.