xXm0dzXx

Untitled

May 10th, 2012
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. while true do
  2. event, id, message = os.pullEvent("rednet_message")
  3.  
  4. if message == "EventMessage" then
  5. i, e = rednet.receive(.1)
  6. i, p1 = rednet.receive(.1)
  7. i, p2 = rednet.receive(.1)
  8. i, p3 = rednet.receive(.1)
  9. i, p4 = rednet.receive(.1)
  10. i, p5 = rednet.receive(.1)
  11.  
  12. if e == "char" then
  13. print(id.. " pressed " ..p1)
  14. end
  15. end
  16. end
Advertisement
Add Comment
Please, Sign In to add comment