CNavArea:GetAdjacentAreas

From Garry's Mod
Jump to: navigation, search
 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

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.
Personal tools
Navigation