navmesh.GetNavAreaByID

From Garry's Mod
Jump to: navigation, search
 navmesh.GetNavAreaByID( )

Description

Returns a CNavArea by the given ID.

NOTE Avoid calling this function every frame, as internally it does a lookup trough all the CNavAreas, call this once and store the result

Arguments

number id

ID of the CNavArea to get. Starts with 1.

Returns

CNavArea

The CNavArea with given ID.
Personal tools
Navigation