SHARE
TWEET

Drone Dummy

MoonlightOwl Dec 28th, 2014 561 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top