Source:setFalloff
Sets parameters that control how the volume of the Source falls of with distance.
Only mono sources support positional falloff. Using this function on a stereo Source will cause an error.
Source:setFalloff(reference, max, rolloff)
Arguments
Name | Type | Description |
reference | number | The distance at which the volume will start to decrease. |
max | number | The distance at which the Source will be its quietest. |
rolloff | number | How quickly the sound falls off between the reference and max distances (1.0 is the default). |
Returns
Nothing
See also
Source:getVolumeLimits
Source:setVolumeLimits
Source:getFalloff
Source