Garry's Mod Wiki

CNavArea:MarkAsBlocked

  CNavArea:MarkAsBlocked( number teamID = -2 )

Description

Marks the area as blocked and unable to be traversed. See CNavArea:IsBlocked and CNavArea:MarkAsUnblocked.

Arguments

1 number teamID = -2
TeamID to mark the area as blocked for. -2 means all teams. Only 2 valid teamIDs are supported: 0 and 1.