NavMesh.GetAreaCost(number areaIndex)⚓︎
Gets the cost for path finding over geometry of the area type.
Parameters:⚓︎
Name | Type | Description |
---|---|---|
areaIndex | number | Index of the area to get. |
Returns:⚓︎
type | Description |
---|---|
number | cost for path finding over geometry of the area type. |
Usage⚓︎
---@type number
local areaIndex;
local val0 = NavMesh:GetAreaCost(areaIndex)