Garry's Mod Wiki

Revision Difference

CNavArea:GetTotalCost#514353

<function name="GetTotalCost" parent="CNavArea" type="classfunc">⤶ <description>⤶ Returns the total cost when passing from starting area to the goal area through this node. Set by <page>CNavArea:SetTotalCost</page>.⤶ ⤶ Used in pathfinding via the [A* algorithm](https://en.wikipedia.org/wiki/A*_search_algorithm).⤶ ⤶ ⤶ More information can be found on the <page>Simple Pathfinding</page> page.⤶ </description>⤶ <realm>Server</realm>⤶ <rets>⤶ <ret name="" type="number">The total cost</ret>⤶ </rets>⤶ </function>⤶ ⤶