NavMeshQueryFilter.GetAreaCost(number areaIndex)
Returns the area cost multiplier for the given area type for this filter. The default value is 1.
Parameters:
Name | Type | Description |
---|---|---|
areaIndex | number | Index to retreive the cost for. |
Returns:
type | Description |
---|---|
number | The cost multiplier for the supplied area index. |
Usage
---@type NavMeshQueryFilter
local navmeshqueryfilter;
---@type number
local areaIndex;
local val0 = navmeshqueryfilter.GetAreaCost(areaIndex)