VE Lua Documentation

Press F to search!

getControllersFromPath

Definition


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

local function getControllersFromPath(path)
  local controllers = {}
  for _, v in pairs(loadedControllers) do
    if v.typeName:sub(1, #path) == path then
      table.insert(controllers, v)
    end
  end
  return controllers
end

Callers

@/lua/vehicle/controller/drivingDynamics/CMU.lua

  subControllers = controller.getControllersFromPath("drivingDynamics/")
local function shutDownAllSystems()
  subControllers = controller.getControllersFromPath("drivingDynamics/")
  subControllerLookup = {}
  subControllers = controller.getControllersFromPath("drivingDynamics/")
local function initLastStage()
  subControllers = controller.getControllersFromPath("drivingDynamics/")