CNavArea:GetAdjacentCountAtSide

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

Description

Returns the amount of CNavAreas that have a connection ( one or two way ) from this CNavArea in given direction.

See CNavArea:GetAdjacentCount for a function that returns CNavArea count from/in all sides/directions.

Arguments

number navDir

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

Returns

number

The amount of CNavAreas that have a connection ( one or two way ) from this CNavArea in given direction.
Personal tools
Navigation