VE Lua Documentation

Press F to search!

updateCabinFilter

Definition


-- @/lua/vehicle/sounds.lua:1040

local function updateCabinFilter()
  obj:queueGameEngineLua(string.format("core_sounds.setCabinFilterStrength(%d, %f)", obj:getID(), clamp(cabinFilterCoef, 0, 1)))
  -- print(string.format("%d: Setting Cabin Filter -> %f", objectId, clamp(cabinFilterCoef, 0, 1)))
end

Callers

@/lua/ge/extensions/core/sounds.lua
  if not newVehicle then return end
  newVehicle:queueLuaCommand("sounds.updateCabinFilter()")
end