Advertisement
Punio

RIM_tbm_move

Jan 6th, 2014
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. -- #################################
  2. -- vars
  3. -- #################################
  4. args     = { ... }
  5. motor    = peripheral.wrap("left")
  6.  
  7. -- #################################
  8. -- main
  9. -- #################################
  10.  
  11. if args[1] ~= nil then
  12.    if args[2] ~= nil and tonumber(args[2]) > 0 then
  13.          motor.move(tonumber(args[1]), false, false)
  14.    else
  15.       print("no Cycles defined or <= 0 !")
  16.    end
  17. else
  18.    print("no dir defined !")
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement