GE Lua Documentation

Press F to search!

missionHasQuickTravelUnlocked

Definition


-- @/lua/ge/extensions/gameplay/missions/progress.lua:1020


M.missionHasQuickTravelUnlocked = function(missionId)
  local mission = gameplay_missions_missions.getMissionById(missionId)
  if not mission then
    plog("E", "", "Trying to missionHasQuickTravelUnlocked nonexistent mission by ID: " .. dumps(id))
    return false
  end
  if not career_career or not career_career.isActive() then
    return true
  end
  --return mission.saveData.quickTravelUnlocked or false
  return true
end

Callers

@/lua/ge/extensions/freeroam/bigMapPoiProvider.lua
      quickTravelAvailable = qtEnabled and true,
      quickTravelUnlocked = qtEnabled and gameplay_missions_progress.missionHasQuickTravelUnlocked(elemData.missionId),
      branchTagsSorted = tableKeysSorted(mission.unlocks.branchTags),