getDriftSpotById
Definition
-- @/lua/ge/extensions/gameplay/drift/saveLoad.lua:41
local function getDriftSpotById(spotId)
return M.getDriftSpotsById()[spotId]
end
Callers
@/lua/ge/extensions/gameplay/drift/freeroam/driftSpots.lua
local function getHighestScoreData()
local spot = gameplay_drift_saveLoad.getDriftSpotById(activeLine.spotName)
return spot.saveData.scores[1] or {score = 0, licensePlate = ""}
local function updateTaskList()
local spot = gameplay_drift_saveLoad.getDriftSpotById(activeLine.spotName)
local highestScore = getHighestScoreData()
local function resetDriftZoneScores(spotName)
local spot = gameplay_drift_saveLoad.getDriftSpotById(spotName)
spot.saveData.scores = {}
local function addNewScore(spotName, score)
local spot = gameplay_drift_saveLoad.getDriftSpotById(spotName)
local scoreGained = gameplay_drift_scoring.getScore().score
local spot = gameplay_drift_saveLoad.getDriftSpotById(activeLine.spotName)
extensions.hook("onDriftSpotFailed", {reason = reason, concludingPhaseDuration = options.concludingPhaseDuration, lineId = activeLine.id})
local spot = gameplay_drift_saveLoad.getDriftSpotById(activeLine.spotName)
for _, obj in ipairs(spot.info.objectives or {}) do
local spot = gameplay_drift_saveLoad.getDriftSpotById(activeLine.spotName)
local function getBigMapTpPosRot(poi, veh)
local spot = gameplay_drift_saveLoad.getDriftSpotById(poi.spotId)
if spot then
for id, line in pairs(lines) do
local spot = gameplay_drift_saveLoad.getDriftSpotById(line.spotName)
local poi = {
if isInFreeroamChallenge then
local spot = gameplay_drift_saveLoad.getDriftSpotById(activeLine.spotName)
for _, obj in ipairs(spot.info.objectives or {}) do
@/lua/ge/extensions/career/modules/branches/leagues.lua
for i, dsId in ipairs(otherLeague.driftSpots or {}) do
local spot = gameplay_drift_saveLoad.getDriftSpotById(dsId)
local defaultCount = 0
for i, dsId in ipairs(league.driftSpots or {}) do
local spot = gameplay_drift_saveLoad.getDriftSpotById(dsId)
league.totalStarsAvailable = league.totalStarsAvailable + #spot.info.objectives
@/lua/ge/extensions/gameplay/drift/saveLoad.lua
local function saveDriftSpotsScoresForSpotById(spotId)
local spot = M.getDriftSpotById(spotId)
spot._dirty = true