Garry's Mod

Garry's Mod

[E2] Navcore Reworked
 This topic has been pinned, so it's probably important
iNVERTED  [developer] 26 Jun, 2022 @ 12:36pm
Documentation
Navcore Console Commands
Command
Default
Description
navcore_stepsmax
20
How many steps in pathfinding are allowed each tick.

Navcore Types
Type
Type ID
Description
navarea
XNA
represents a CNavArea

Navcore Functions
Function
Return
Description
navSet..
Sets corresponding path finding property
navBeginPathSimple(V,V)
R
Prepare for generation using properties set in navSet.. functions
navPathStepSimple(N)
Take a step in path generation, returns a string stating current status "Not Pathing" "Failed" "In Progress" "Complete" Has to be called multiple times to continue generation
navPathAreasChecked()
N
Amount of areas that had been checked so far by the pathfinder
navTotalAreas()
N
Approximate total of how many CNavAreas the map has
navReturnPathSimple()
R
Return array of vectors representing the path, only usable AFTER navPathStepSimple() return "Complete"
navFindNearestNavArea(V)
XNA
Find a CNavArea closest to the provided vector
navFindNearestValidNavArea(V)
XNA
Find a CNavArea closest to the provided vector that also meets navSet.. values
XNA:navAreaGetCenter()
V
Get the center pos of a CNavArea
XNA:navAreaGetClosestPoint(V)
V
Gets pos on CNavArea closest to provided vector
Last edited by iNVERTED; 13 Apr, 2023 @ 3:06pm