getCurrentDriftDuration
Definition
-- @/lua/ge/extensions/gameplay/drift/drift.lua:949
local function getCurrentDriftDuration()
if isDrifting then
return driftActiveData.totalDriftTime
else
return 0
end
end
Callers
@/lua/ge/extensions/gameplay/drift/quickMessages.lua
score = scoreCopy,
currentDriftDuration = gameplay_drift_drift.getCurrentDriftDuration()
}) then
@/lua/ge/extensions/gameplay/drift/freeroam/cruising.lua
local function detectStart()
if gameplay_drift_general.getContext() == "inFreeroam" and gameplay_drift_drift.getCurrentDriftDuration() >= driftDuration and gameplay_drift_drift.getDriftChainChainedDrifts() >= minDriftChain then
tryEnableUI()