Garry's Mod Wiki

CNavArea:GetTotalCost

number CNavArea:GetTotalCost()

Description

Returns the total cost when passing from starting area to the goal area through this node. Set by CNavArea:SetTotalCost.

Used in pathfinding via the A* algorithm.

More information can be found on the Simple Pathfinding page.

Returns

1 number
The total cost

Page Links


Special Pages


Wikis

?

Render Time: 30ms

DB GetPage 2
Generate Html 6
SaveChanges (1) 8
Render Body 0
Render Sidebar 12