GE Lua Documentation

Press F to search!

getScore

Definition


-- @/lua/ge/extensions/gameplay/drift/scoring.lua:593

local function getScore()
  return driftScore
end

Callers

@/lua/ge/extensions/gameplay/drift/drift.lua

  score = gameplay_drift_scoring.getScore()
@/lua/ge/extensions/gameplay/drift/display.lua

  score = gameplay_drift_scoring.getScore()
  local scoreOptions = gameplay_drift_scoring.getScoreOptions()

  score = gameplay_drift_scoring.getScore()
@/lua/ge/extensions/gameplay/drift/quickMessages.lua
  driftChainActiveDataCopy = gameplay_drift_drift.getDriftChainActiveData()
  scoreCopy = gameplay_drift_scoring.getScore()
@/lua/ge/extensions/gameplay/drift/freeroam/driftSpots.lua

    local scoreGained = gameplay_drift_scoring.getScore().score
    local spot = gameplay_drift_saveLoad.getDriftSpotById(activeLine.spotName)
    for _, obj in ipairs(spot.info.objectives or {}) do
      local completed = spot.saveData.objectivesCompleted[obj.id] or gameplay_drift_scoring.getScore().score >= obj.score
        guihooks.trigger("SetTasklistTask", {
  end
  if not hasAlreadyShownNewRecord and not isInTheConcludingPhase and isInFreeroamChallenge and gameplay_drift_scoring.getScore().score > getHighestScoreData().score and getHighestScoreData().score > 0 then
    extensions.hook("onFreeroamDriftZoneNewHighscore")
@/lua/ge/extensions/flowgraph/nodes/gameplay/drift/driftScore.lua
function C:work()
  score = gameplay_drift_scoring.getScore()
  self.pinOut.score.value = score.score