Garry's Mod Wiki

CNavArea:GetAdjacentAreasAtSide

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 Enums/NavDir.

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.

Special Pages


Wikis

?

Render Time: 23ms

DB GetPage 2
Generate Html 6
SaveChanges (1) 6
Render Body 0
Render Sidebar 7