CNavArea:GetAdjacentAreasAtSide

From Garry's Mod
Jump to: navigation, search
 CNavArea:GetAdjacentAreasAtSide( )

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

number navDir

The direction, in which to look for CNavAreas, see NavDir_ Enums.

Returns

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