Garry's Mod Wiki


void CNavArea:SetTotalCost( number cost )


Sets the total cost when passing from starting area to the goal area through this node.

Used in pathfinding via the A* algorithm.

More information can be found on the Simple Pathfinding page.


1 number cost
The total cost of the path to set.

Must be above or equal 0.

Page Links

Special Pages



Render Time: 24ms

Session 0
DB GetPage 3
Generate Html 0
SaveChanges 12
Render Body 0
Render Sidebar 6