{{newin|[[0.8.0]]|080|type=function}}
Sets the rolloff factor which affects the strength of the used [[DistanceModel|distance attenuation]].

Extended information and detailed formulas can be found in the chapter "3.4. Attenuation By Distance" of [https://www.openal.org/documentation/openal-1.1-specification.pdf OpenAL 1.1 specification].

== Function ==
=== Synopsis ===
<source lang="lua">
Source:setRolloff( rolloff )
</source>
=== Arguments ===
{{param|number|rolloff|The new rolloff factor.}}
=== Returns ===
Nothing.
== See Also ==
* [[parent::Source]]
[[Category:Functions]]
{{#set:Description=Sets the rolloff factor.}}
{{#set:Since=080}}
== Other Languages ==
{{i18n|Source:setRolloff}}