getPathLength
Definition
-- @/lua/ge/extensions/core/groundMarkers.lua:43
local function getPathLength()
if M.routePlanner.path and M.routePlanner.path[1] then
return M.routePlanner.path[1].distToTarget
end
return 0
end
Callers
@/lua/ge/extensions/flowgraph/nodes/gameplay/rally/vehicleStoppedNearPlane.lua
if core_groundMarkers and core_groundMarkers.currentlyHasTarget() then
local groundMarkerDist = core_groundMarkers.getPathLength()
if groundMarkerDist and groundMarkerDist >= threshold then
@/lua/ge/extensions/career/modules/inspectVehicle.lua
local function setTimeToInspectVehicle()
local pathLength = core_groundMarkers.getPathLength()
local timeToInspectVehicle = pathLength / 5
@/lua/ge/extensions/gameplay/markerInteraction.lua
end
--simpleDebugText3d(core_groundMarkers.getPathLength(),core_groundMarkers.getTargetPos(), 0.25)
if core_groundMarkers.getPathLength() < 7 then
--simpleDebugText3d(core_groundMarkers.getPathLength(),core_groundMarkers.getTargetPos(), 0.25)
if core_groundMarkers.getPathLength() < 7 then
reachedTarget()