Garry's Mod Wiki

CNavArea:GetCostSoFar

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.

Special Pages


Wikis

?

Render Time: 24ms

DB GetPage 3
Generate Html 3
SaveChanges (1) 8
Render Body 0
Render Sidebar 7