Garry's Mod Wiki

Revision Difference

CSoundPatch:ChangeVolume#518223

<function name="ChangeVolume" parent="CSoundPatch" type="classfunc"> <description> Adjusts the volume of the sound played.&amp;lt;br&amp;gt; Adjusts the volume of the sound played.&lt;br&gt; Appears to only work while the sound is being played. </description> <realm>Shared</realm> <args> <arg name="volume" type="number">The volume ranges from 0 to 1.</arg> <arg name="deltaTime" type="number" default="0">Time to fade the volume from previous to new value from.</arg> </args> </function>