Skip to main content

NavMeshQueryFilter.GetAreaCost(number areaIndex)

Returns the area cost multiplier for the given area type for this filter. The default value is 1.

Parameters:

NameTypeDescription
areaIndexnumberIndex to retreive the cost for.

Returns:

typeDescription
numberThe cost multiplier for the supplied area index.

Usage

---@type NavMeshQueryFilter
local navmeshqueryfilter;

---@type number
local areaIndex;


local val0 = navmeshqueryfilter.GetAreaCost(areaIndex)