Garry's Mod

Garry's Mod

[E2] Navcore Reworked
 此主题已被置顶,因此可能具有重要性
iNVERTED  [开发者] 2022 年 6 月 26 日 下午 12:36
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
最后由 iNVERTED 编辑于; 2023 年 4 月 13 日 下午 3:06