Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -----------------launch computers hooked up to silos---------
- local launchPC = 3 -- Change to Main Launch Computer ID
- rednet.open("right") --again, change if not right
- term.clear()
- print("Listening...")
- while true do
- local id, msg = rednet.receive()
- print ("Received message from "..tostring(id)..":"..tostring(msg))
- if(msg == "fire!" and tonumber(id) == launchPC) then
- rs.setOutput("top",not rs.getOutput("top"))
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement