Advertisement
montana_1

List Components

Jul 27th, 2015
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.19 KB | None | 0 0
  1. local component = require("component")
  2. local t = component.list()
  3. print("Component Type ; Address")
  4. for address,componentType in pairs(t) do
  5.     print(componentType .." ; " .. address)
  6. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement