getRadius.lua 743 B

12345678910111213141516171819202122232425
  1. return {
  2. tag = 'sourceEffects',
  3. summary = 'Get the radius of the Source.',
  4. description = [[
  5. Returns the radius of the Source, in meters.
  6. This does not control falloff or attenuation. It is only used for smoothing out occlusion. If
  7. a Source doesn't have a radius, then when it becomes occluded by a wall its volume will
  8. instantly drop. Giving the Source a radius that approximates its emitter's size will result in
  9. a smooth transition between audible and occluded, improving realism.
  10. ]],
  11. arguments = {},
  12. returns = {
  13. radius = {
  14. type = 'number',
  15. description = 'The radius of the Source, in meters.'
  16. }
  17. },
  18. variants = {
  19. {
  20. arguments = {},
  21. returns = { 'radius' }
  22. }
  23. }
  24. }