Garry's Mod Wiki

CNavArea:GetCostSoFar

number CNavArea:GetCostSoFar()

Description

Returns the cost from starting area this area when pathfinding. Set by CNavArea:SetCostSoFar.

Used in pathfinding via the A* algorithm.

More information can be found on the Simple Pathfinding page.

Returns

1 number
The cost so far.

Page Links


Special Pages


Wikis

?

Render Time: 26ms

DB GetPage 2
Generate Html 2
SaveChanges (1) 7
Render Body 0
Render Sidebar 11