setRadius.lua 744 B

12345678910111213141516171819202122232425
  1. return {
  2. tag = 'sourceEffects',
  3. summary = 'Set the radius of the Source.',
  4. description = [[
  5. Sets 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. radius = {
  13. type = 'number',
  14. description = 'The new radius of the Source, in meters.'
  15. }
  16. },
  17. returns = {},
  18. variants = {
  19. {
  20. arguments = { 'radius' },
  21. returns = {}
  22. }
  23. }
  24. }