Source:setFalloff

Sets parameters that control how the volume of the Source falls of with distance.

Source:setFalloff(reference, max, rolloff)

Arguments

NameTypeDescription
referencenumberThe distance at which the volume will start to decrease.
maxnumberThe distance at which the Source will be its quietest.
rolloffnumberHow quickly the sound falls off between the reference and max distances (1.0 is the default).

Returns

Nothing

See also