VE Lua Documentation

Press F to search!

cacheAllControllerFunctions

Definition


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

local function cacheAllControllerFunctions()
  physicsUpdates = {}
  wheelsIntermediateUpdates = {}
  gfxUpdates = {}
  fixedStepUpdates = {}
  beamBrokens = {}
  nodeCollisions = {}
  couplerAttachedEvents = {}
  couplerDetachedEvents = {}
  couplerFoundEvents = {}
  gameplayEvents = {}
  debugDraws = {}

  for name, _ in pairs(controllerNameLookup) do
    controllerNameLookup[name] = {}
  end

  for _, controller in ipairs(sortedControllers) do
    cacheControllerFunctions(controller)
  end

  updateFunctionCounts()
end

Callers

@/lua/vehicle/controller/esc.lua
    end
    controller.cacheAllControllerFunctions()
    return
@/lua/vehicle/controller/couplings/fifthwheel.lua
  M.debugDraw = visible and debugDrawMethod or nil
  controller.cacheAllControllerFunctions()
  local cmdString = "for _,kingpin in ipairs(controller.getControllersByType('couplings/kingpin')) do kingpin.setKingpinVisibility(%q,%s) end"
@/lua/vehicle/controller/drivingDynamics/CMU.lua

  controller.cacheAllControllerFunctions()
end
@/lua/vehicle/controller/couplings/kingpin.lua
  M.debugDraw = visible and debugDrawMethod or nil
  controller.cacheAllControllerFunctions()
end
@/lua/vehicle/controller.lua

  M.cacheAllControllerFunctions()

  M.cacheAllControllerFunctions()
end

  cacheAllControllerFunctions()
end

  cacheAllControllerFunctions()
end

  cacheAllControllerFunctions()
end

  cacheAllControllerFunctions()
end

  cacheAllControllerFunctions()
end

  cacheAllControllerFunctions()
end