Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. -----------------launch computers hooked up to silos---------
  2. local launchPC = 3 -- Change to Main Launch Computer ID
  3. rednet.open("right") --again, change if not right
  4. term.clear()
  5. print("Listening...")
  6. while true do
  7. local id, msg = rednet.receive()
  8. print ("Received message from "..tostring(id)..":"..tostring(msg))
  9. if(msg == "fire!" and tonumber(id) == launchPC) then
  10. rs.setOutput("top",not rs.getOutput("top"))
  11. end
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement