Garry's Mod Wiki

CNavArea:Draw

  CNavArea:Draw()

Description

Draws this navarea on debug overlay. (So limitations of debugoverlay library apply)

Example

Draws every navarea on debug overlay. Careful, this will get laggy fast.

if ( SERVER ) then local LastDraw = 0 hook.Add( "Think", "DrawAllNavAreas", function() if ( CurTime() - LastDraw < 0.100 ) then return end LastDraw = CurTime() for id, area in pairs( navmesh.GetAllNavAreas() ) do area:Draw() end end ) end