Garry's Mod Wiki

CNavArea:IsBlocked

  boolean CNavArea:IsBlocked( number teamID = -2, boolean ignoreNavBlockers = false )

Description

Returns whether the nav area is blocked or not, i.e. whether it can be walked through or not.

Arguments

1 number teamID = -2
The team ID to test, -2 = any team.

Only 2 actual teams are available, 0 and 1.

2 boolean ignoreNavBlockers = false
Whether to ignore func_nav_blocker entities.

Returns

1 boolean
Whether the area is blocked or not