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
- reactors[add] = component.proxy(add)
- numReactors = numReactors + 1
- end
- print("Found " .. numReactors .. " reactor(s) at:")
- for add,proxy in pairs(reactors) do
- print(add, proxy)
- end
- os.sleep(2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement