currentlyHasTarget
Definition
-- @/lua/ge/extensions/core/groundMarkers.lua:346
local function currentlyHasTarget()
return M.endWP ~= nil
end
Callers
@/lua/ge/extensions/freeroam/bigMapMode.lua
simplifiedPath = nil
if core_groundMarkers.currentlyHasTarget() then
simplifiedPath = simplifyRoute(core_groundMarkers.routePlanner.path)
if iconInfo then
if showNavigationMarker and core_groundMarkers.currentlyHasTarget() then
local resolutionFactor = 800 / M.getVerticalResolution()
if core_groundMarkers.currentlyHasTarget() then
setNavFocus(core_groundMarkers.endWP[1])
-- deselecting the current marker
--log("I", "", string.format("Sel: %s Hov: %s HasTgt: %s", M.selectedPoiId, M.hoveredPoiId, dumps(core_groundMarkers.currentlyHasTarget())))
if M.selectedPoiId and (not M.hoveredPoiId or M.selectedPoiId == M.hoveredPoiId) then
-- clicking the map to set a route anywhere.
if not M.hoveredPoiId and not core_groundMarkers.currentlyHasTarget() then
local ray
-- remove navigation when the ground is clicked, but only when no mission is selected
if not M.selectedPoiId and not M.hoveredPoiId and core_groundMarkers.currentlyHasTarget() then
navigateToMission(nil)
@/lua/ge/extensions/freeroam/facilities.lua
extensions.hook("onTeleportedToGarage", garageId, veh)
if core_groundMarkers.currentlyHasTarget() then
freeroam_bigMapMode.setNavFocus(core_groundMarkers.endWP[1])
@/lua/ge/extensions/flowgraph/nodes/gameplay/rally/vehicleStoppedNearPlane.lua
local function getGroundMarkerDistanceIfApplicable(threshold)
if core_groundMarkers and core_groundMarkers.currentlyHasTarget() then
local groundMarkerDist = core_groundMarkers.getPathLength()
@/lua/ge/extensions/gameplay/markerInteraction.lua
if gameplay_missions_missionManager then
if gameplay_missions_missionManager.getForegroundMissionId() == nil and core_groundMarkers.currentlyHasTarget() then
if freeroam_bigMapMode and not freeroam_bigMapMode.bigMapActive() and type(core_groundMarkers.endWP[1]) == "cdata" then -- is vec3
@/lua/ge/spawn.lua
-- if there are groundmarkers active then choose the side in the direction of the route
if core_groundMarkers.currentlyHasTarget() then
core_groundMarkers.routePlanner:trackPosition(recoveryPoint.pos)
@/lua/ge/extensions/gameplay/rally/geometry.lua
local function onUpdate(dt, dtSim)
if core_groundMarkers.currentlyHasTarget() then
if prevPacenoteSource ~= 'groundMarkers' then