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: 18ms

Session 0
DB GetPage 2
Generate Html 0
SaveChanges 8
Render Body 0
Render Sidebar 5