Garry's Mod Wiki

CNavArea:SetTotalCost

CNavArea:SetTotalCost

  CNavArea:SetTotalCost( number cost )

Description

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.

Arguments

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

Must be above or equal 0.

Special Pages


Wikis

?

Render Time: 60ms

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