Advertisement
MoonlightOwl

Drone Dummy

Dec 28th, 2014
937
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.57 KB | None | 0 0
  1. local lib = {}
  2. local status = ""
  3. local accel = 0
  4.  
  5. function lib.getStatusText()
  6.   return status
  7. end
  8. function lib.setStatusText(text)
  9.   status = text
  10.   print("[Drone] New status: ", status)
  11. end
  12. function lib.move(x, y, z)
  13.   print("[Drone] Moved to: ", x, y, z)
  14. end
  15. function lib.getOffset()
  16.   return 0
  17. end
  18. function lib.getVelocity()
  19.   return 1
  20. end
  21. function lib.getMaxVelocity()
  22.   return 2
  23. end
  24. function lib.getAcceleration()
  25.   return accel
  26. end
  27. function lib.setAcceleration(value)
  28.   accel = value
  29.   print("[Drone] New acceleration: ", accel)
  30. end
  31.  
  32. return lib
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement