Garry's Mod Wiki

Garry's Mod Wiki

  table CNavArea:GetAdjacentAreas()

Description

Returns a list 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 list 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.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...