Advertisement
ChaosBeing

remoteCommand

Feb 27th, 2012
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.15 KB | None | 0 0
  1. function parseCommands(msg)
  2.     if msg == "Infect"
  3.         --Do stuff
  4.     end
  5. end
  6.  
  7.  
  8. ID, msg = rednet.receive(0.5)
  9. if msg.length > 1
  10.     parseCommands(msg)
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement