CNavArea/GetTotalCost

From Garry's Mod
Jump to: navigation, search
 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

number

The total cost
Personal tools
Navigation