akihex

rsSeq

Aug 28th, 2014
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local dir = {"back","right","front","left"}
  2.  
  3. local n = 4
  4.  
  5. while true do
  6.   rs.setOutput(dir[n],false)
  7.   n=1+(n)%4
  8.   rs.setOutput(dir[n],true)
  9.   repeat
  10.     sleep(0.5)
  11.   until rs.getInput("top")==false
  12. end
Advertisement
Add Comment
Please, Sign In to add comment