fa
fa copied to clipboard
NavRequest - Return path distance when a path is requested.
Return pathing distance when a path is generated
When a path from an origin to a destination is requested, the path will also return the distance of the generated path.
---@param layer String
---@param origin Vector
---@param destination Vector
---@return boolean
function PathTo(layer, origin, destination)
end
returns true, message, distance on success
Screenshot attached shows the issue with the current approach. There are two mass points very close to the spawn position. But the actual travel distance is much further than another mass point that while further in radius is less than half the distance to travel to.
As an AI developer I would likely want to cache the pathing distances from the main base on game start so that the builder conditions for mass points would take those into account rather than the VDist3 radius.
