Advertisement
thatparadox

botPosition

Dec 14th, 2013
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.26 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement