GE Lua Documentation

Press F to search!

getDriftPerformanceFactor

Definition


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

local function getDriftPerformanceFactor()
  return performanceFactor
end

Callers

@/lua/ge/extensions/gameplay/drift/drift.lua
    driftActiveData.totalAngles = driftActiveData.totalAngles + currDegAngle
    driftActiveData.totalPerformanceFactors = driftActiveData.totalPerformanceFactors + gameplay_drift_scoring.getDriftPerformanceFactor()
    driftActiveData.totalSteps = driftActiveData.totalSteps + 1
@/lua/ge/extensions/gameplay/drift/sounds.lua
  if sound then
    sound:setParameter("pitch", gameplay_drift_scoring.getDriftPerformanceFactor())
    sound:setTransform(getCameraTransform())