{{newin|[[0.9.0]]|090|type=function}}
Sets the Source's directional volume cones. Together with [[Source:setDirection]], the cone angles allow for the Source's volume to vary depending on its direction.
== Function ==
=== Synopsis ===
<source lang="lua">
Source:setCone( innerAngle, outerAngle, outerVolume )
</source>
=== Arguments ===
{{param|number|innerAngle|The inner angle from the Source's direction, in radians. The Source will play at normal volume if the listener is inside the cone defined by this angle.}}
{{param|number|outerAngle|The outer angle from the Source's direction, in radians. The Source will play at a volume between the normal and outer volumes, if the listener is in between the cones defined by the inner and outer angles.}}
{{param|number|outerVolume (0)|The Source's volume when the listener is outside both the inner and outer cone angles.}}
=== Returns ===
Nothing.
== See Also ==
* [[parent::Source]]
* [[Source:getCone]]
* [[Source:setDirection]]
[[Category:Functions]]
{{#set:Description=Sets the Source's directional volume cones.}}
== Other Languages ==
{{i18n|Source:setCone}}