Skip to main content

NavMesh.GetAreaCost(number areaIndex)

Gets the cost for path finding over geometry of the area type.

Parameters:

NameTypeDescription
areaIndexnumberIndex of the area to get.

Returns:

typeDescription
numbercost for path finding over geometry of the area type.

Usage

---@type number
local areaIndex;


local val0 = NavMesh:GetAreaCost(areaIndex)