Guest User

Example DTM API program

a guest
Mar 15th, 2012
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. os.loadAPI("t")
  2. rednet.open("right")
  3. while true do
  4. event, senderid, cmd = os.pullEvent("rednet_message")
  5. if cmd == "f" then t.f() end
  6. if cmd == "l" then t.l() end
  7. if cmd == "r" then t.r() end
  8. if cmd == "b" then r.b() end
  9. if cmd == "d" then t.d() end
  10. if cmd == "u" then t.u() end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment