CNavArea/GetCostSoFar

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

Description

Returns the cost from starting area this area when pathfinding. Set by CNavArea:SetCostSoFar.

Used in pathfinding via the A* algorithm.
More information can be found on the Simple Pathfinding page.

Returns

number

The cost so far.
Personal tools
Navigation