Garry's Mod Wiki

Garry's Mod Wiki

  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

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...