Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2015
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. function findReactors()
  2. print("Searching for reactors...")
  3. os.sleep(1)
  4. numReactors = 0
  5. for add, _ in component.list("br_reactor") do
  6. reactors[add] = component.proxy(add)
  7. numReactors = numReactors + 1
  8. end
  9. print("Found " .. numReactors .. " reactor(s) at:")
  10. for add,proxy in pairs(reactors) do
  11. print(add, proxy)
  12. end
  13. os.sleep(2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement