thatparadox

botPosition

Dec 14th, 2013
132
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --http://www.youtube.com/watch?v=Eq27GOX71TU
  2. mech = peripheral.wrap("right") --attach robot controller
  3.  
  4. mechX, mechY, mechZ = mech.getLocation(1) --assign the mechs coordinates to variables
  5.  
  6. print("x: "..mechX.." y: "..mechY.." z: "..mechZ) -- print mech location
RAW Paste Data