Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2015
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 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. table.insert(reactors, add)
  7. table.insert(reactorproxy, component.proxy(add))
  8. numReactors = numReactors + 1
  9. end
  10. print("Found " .. numReactors .. " reactor(s) at:")
  11. for key,add in pairs(reactors) do
  12. print(key, add)
  13. end
  14. os.sleep(2)
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement