VE Lua Documentation

Press F to search!

onBreak

Definition


-- @/lua/common/luaCore.lua:41

function nop()
end

Callers

@/lua/vehicle/powertrain/electricMotor.lua

local function onBreak(device)
  device:lockUp()
@/lua/vehicle/energyStorage.lua
  if storage.onBreak then
    storage:onBreak()
  end
@/lua/vehicle/powertrain/hydraulicPump.lua
  if integrityState.isBroken then
    device:onBreak()
  end

local function onBreak(device)
  device.isBroken = true
@/lua/vehicle/powertrain/hydraulicAccumulator.lua
  if integrityState.isBroken then
    device:onBreak()
  end

local function onBreak(device)
  device.isBroken = true
@/lua/vehicle/powertrain/combustionEngine.lua
    if integrityState.isBroken then
      device:onBreak()
    end

local function onBreak(device)
  device:lockUp()
@/lua/vehicle/energyStorage/n2oTank.lua

local function onBreak(storage)
  storage.currentLeakRate = storage.brokenLeakRate
@/lua/vehicle/powertrain/sequentialGearbox.lua

local function onBreak(device)
  device.isBroken = true
  if integrityState.isBroken then
    device:onBreak()
  end
@/lua/vehicle/energyStorage/fuelTank.lua

local function onBreak(storage)
  storage.currentLeakRate = storage.brokenLeakRate
@/lua/vehicle/powertrain/differential.lua
  if integrityState.isBroken then
    device:onBreak()
  end
@/lua/vehicle/powertrain/cvtGearbox.lua
  if integrityState.isBroken then
    device:onBreak()
  end
@/lua/vehicle/powertrain.lua
  end
  device:onBreak()
@/lua/vehicle/powertrain/rangeBox.lua
  if integrityState.isBroken then
    device:onBreak()
  end
@/lua/vehicle/powertrain/manualGearbox.lua

local function onBreak(device)
  device.isBroken = true
  if integrityState.isBroken then
    device:onBreak()
  end
@/lua/vehicle/powertrain/shaft.lua
  if integrityState.isBroken then
    device:onBreak()
  end

local function onBreak(device)
  device.isBroken = true
@/lua/vehicle/powertrain/electricWinch.lua
  if integrityState.isBroken then
    device:onBreak()
  end
@/lua/vehicle/powertrain/linearActuator.lua
  if integrityState.isBroken then
    device:onBreak()
  end

local function onBreak(device)
  device.isBroken = true
@/lua/vehicle/powertrain/automaticGearbox.lua
  if integrityState.isBroken then
    device:onBreak()
  end
@/lua/vehicle/powertrain/splitShaft.lua
  if integrityState.isBroken then
    device:onBreak()
  end

local function onBreak(device)
  device.isBroken = true
@/lua/vehicle/powertrain/compressor.lua
  if integrityState.isBroken then
    device:onBreak()
  end

local function onBreak(device)
  device.isBroken = true
@/lua/vehicle/powertrain/genericTorqueProvider.lua

local function onBreak(device)
  device:lockUp()
@/lua/vehicle/energyStorage/pressureTank.lua

local function onBreak(storage)
  storage.currentLeakRate = storage.maxLeakRate
@/lua/vehicle/powertrain/electricServo.lua

local function onBreak(device)
  device.isBroken = true