Garry's Mod Wiki

CNavArea:GetIncomingConnectionsAtSide

  table CNavArea:GetIncomingConnectionsAtSide( number navDir )

Description

Returns a table of all the CNavAreas that have a one-way connection to this CNavArea from given direction.

If a CNavArea has a two-way connection to or from this CNavArea then it will not be returned from this function, use CNavArea:GetAdjacentAreas to get outgoing ( one and two way ) connections.

See CNavArea:GetIncomingConnections for a function that returns one-way incoming connections from all sides/directions.

Arguments

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

Returns

1 table
A table of all CNavAreas with one-way connection to this CNavArea from given direction.

Returns an empty table if there are no one-way incoming connections to this CNavArea from given direction.