Advertisement
thatparadox

botLook

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