CNavArea/SetTotalCost

From Garry's Mod
Jump to: navigation, search
 CNavArea:SetTotalCost( )

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

number cost

The total cost of the path to set.

Must be above or equal 0.
Personal tools
Navigation