CNavArea:GetRandomAdjacentAreaAtSide

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

Description

Returns a random CNavArea that has an outgoing ( one or two way ) connection from this CNavArea in given direction.

Arguments

number navDir

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

Returns

CNavArea

The random CNavArea that has an outgoing ( one or two way ) connection from this CNavArea in given direction, if any.
Personal tools
Navigation