getPosition.lua 567 B

1234567891011121314151617181920212223242526
  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. x = {
  8. type = 'number',
  9. description = 'The x position of the listener.'
  10. },
  11. y = {
  12. type = 'number',
  13. description = 'The y position of the listener.'
  14. },
  15. z = {
  16. type = 'number',
  17. description = 'The z position of the listener.'
  18. }
  19. },
  20. variants = {
  21. {
  22. arguments = {},
  23. returns = { 'x', 'y', 'z' }
  24. }
  25. }
  26. }