{{newin|[[0.8.0]]|080|type=function}}
{{oldin|[[0.9.0]]|090|type=function|text=It has been renamed to [[Source:getAttenuationDistances]]}}
Returns the reference and maximum distance of the source.
{{notice|There's a bug in [[0.8.0]] preventing this function from working}}
== Function ==
=== Synopsis ===
<source lang="lua">
ref, max = Source:getDistance( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|number|ref|The reference distance.}}
{{param|number|max|The maximum distance.}}
== See Also ==
* [[parent::Source]]
[[Category:Functions]]
{{#set:Description=Returns the reference and maximum distance of the source.}}
{{#set:Since=080}}
== Other Languages ==
{{i18n|Source:getDistance}}