thatparadox

botLook

Dec 14th, 2013
114
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) -- find OpenMech's location
  5. player = mech.getPlayerData(1, "remorsless") -- Get info on player
  6. mech.lookAt(1, player.position.x + mechX, player.position.y + mechY, player.position.z + mechZ) --get mech to look at player
RAW Paste Data