getPosition.lua 521 B

1234567891011121314151617181920212223
  1. return {
  2. tag = 'listener',
  3. summary = 'Get the position of the listener.',
  4. description = 'Returns the position of the virtual audio listener, in meters.',
  5. arguments = {},
  6. returns = {
  7. {
  8. name = 'x',
  9. type = 'number',
  10. description = 'The x position of the listener.'
  11. },
  12. {
  13. name = 'y',
  14. type = 'number',
  15. description = 'The y position of the listener.'
  16. },
  17. {
  18. name = 'z',
  19. type = 'number',
  20. description = 'The z position of the listener.'
  21. }
  22. }
  23. }