Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function findReactors()
- print("Searching for reactors...")
- os.sleep(1)
- numReactors = 0
- for add, _ in component.list("br_reactor") do
- table.insert(reactors, add)
- table.insert(reactorproxy, component.proxy(add))
- numReactors = numReactors + 1
- end
- print("Found " .. numReactors .. " reactor(s) at:")
- for key,add in pairs(reactors) do
- print(key, add)
- end
- os.sleep(2)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement