isDriving
Definition
-- @/lua/vehicle/ai.lua:6963
local function isDriving()
return M.updateGFX == updateGFX or (scriptai ~= nil and scriptai.isDriving())
end
Callers
@/lua/vehicle/sounds.lua
volume = volume or 1
if (not playerInfo.anyPlayerSeated) and ai.isDriving() and volume > 0 then
return
@/lua/vehicle/input.lua
if k == "steering" then
if playerInfo.anyPlayerSeated and not ai.isDriving() then
if filter ~= M.lastFilterType then
@/lua/vehicle/ai.lua
local function isDriving()
return M.updateGFX == updateGFX or (scriptai ~= nil and scriptai.isDriving())
end
@/lua/vehicle/hydros.lua
if ai.isDriving() then
M.wheelFFBForceCoefCurrent = 0 -- free up the wheel while AI is driving
@/lua/vehicle/scriptai.lua
local function isDriving()
return M.updateGFX == updateGFXfollow