L L4D2node

CNavMesh

20 own methods

The nav mesh

Methods

callable on a CNavMesh script handle
Script Function Returns Parameters Description
FindLadderAlongRay hscript Vector, Vector, hscript Arguments: ( startpos, endpos, ignoreArea ) - get nav ladder from ray
FindNavAreaAlongRay hscript Vector, Vector, hscript Arguments: ( startpos, endpos, ignoreAreaID ) - get nav area from ray
GetAllAreas void hscript Arguments: ( table ) - fills a passed in table of all nav areas
GetAllLadders void hscript Arguments: ( table ) - fills a passed in table of all nav ladders
GetAreasWithAttributes void int, hscript Arguments: ( bits, table ) - fills a passed in table of all nav areas that have the specified attributes
GetLadderByID (ScriptGetLadderByID) hscript int Arguments: ( ladderID ) - get nav ladder by ID
GetLadderCount int none return total number of nav ladders
GetNavArea (ScriptGetNavArea) hscript Vector, float Arguments: ( origin, flBeneath ) - given a position in the world, return the nav area that is closest to or below that height.
GetNavAreaByID (ScriptGetNavAreaByID) hscript int Arguments: ( areaID ) - get nav area by ID
GetNavAreaCount (ScriptGetNavAreaCount) int none return total number of nav areas
GetNavAreasFromBuildPath (ScriptGetNavAreasFromBuildPath) bool hscript, hscript, Vector, float, int, bool, hscript Arguments: ( table ) - Fills the table with areas from a path. Returns whether a path was found
GetNavAreasInRadius void Vector, float, hscript Arguments: ( origin, radius, table ) - fills a passed in table of nav areas within radius
GetNavAreasOverlappingEntityExtent (ScriptGetNavAreasOverlappingEntityExtent) void hscript, hscript Arguments: ( entity, table ) - fills passed in table with areas overlapping entity's extent
GetNearestNavArea (ScriptGetNearestNavArea) hscript Vector, float, bool, bool Arguments: ( origin, maxDist, checkLOS, checkGround ) - given a position in the world, return the nav area that is closest to or below that height.
GetObstructingEntities void hscript Arguments: ( table ) - fills a passed in table of all obstructing entities
NavAreaBuildPath (ScriptNavAreaBuildPath) bool hscript, hscript, Vector, float, int, bool Arguments: ( area, area, goalPos, flMaxPathLength, teamID, ignoreNavBlockers ) - returns true if a path exists
NavAreaTravelDistance (ScriptNavAreaTravelDistance) float hscript, hscript, float Arguments: ( area, area, flMaxPathLength ) - compute distance between two areas. Return -1 if can't reach 'endArea' from 'startArea'
RegisterAvoidanceObstacle (ScriptRegisterAvoidanceObstacle) void hscript Arguments: ( entity ) - registers avoidance obstacle
UnblockRescueVehicleNav void none Unblock the rescue vehicle nav areas so bots can path through them
UnregisterAvoidanceObstacle (ScriptUnregisterAvoidanceObstacle) void hscript Arguments: ( entity ) - unregisters avoidance obstacle