Skip to main content

NavMeshAgent.GetAreaCost(number areaIndex)

Gets the cost for path calculation when crossing area of a particular type.

Parameters:

NameTypeDescription
areaIndexnumberArea Index.

Returns:

typeDescription
numberCurrent cost for specified area index.

Usage

---@type NavMeshAgent
local navmeshagent;

---@type number
local areaIndex;


local val0 = navmeshagent.GetAreaCost(areaIndex)