Garry's Mod Wiki

CNavArea:GetAdjacentAreas

table CNavArea:GetAdjacentAreas()

Description

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

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 one-way incoming connections.

See CNavArea:GetAdjacentAreasAtSide for a function that only returns areas from one side/direction.

Returns

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

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

Page Links


Special Pages


Wikis

?

Render Time: 32ms

DB GetPage 2
Generate Html 8
SaveChanges (1) 10
Render Body 0
Render Sidebar 9