VE Lua Documentation

Press F to search!

resetSecondStage

Definition


-- @/lua/vehicle/controller.lua:769

local function resetSecondStage()
  for _, v in pairs(sortedControllers) do
    if v.reset then
      v.reset(controllerJbeamData[v.name])
    elseif v.initSecondStage then
      v.initSecondStage(controllerJbeamData[v.name])
    end
  end

  cacheAllControllerFunctions()
end

Callers

@/lua/vehicle/main.lua
  controller.reset()
  wheels.resetSecondStage()
  controller.resetSecondStage()
  wheels.resetSecondStage()
  controller.resetSecondStage()
  drivetrain.reset()
@/lua/vehicle/wheels.lua

local function resetSecondStage()
  M.wheelCount = initialWheelCountDec + 1