Garry's Mod Wiki

CSoundPatch:ChangeVolume

  CSoundPatch:ChangeVolume( number volume, number deltaTime = 0 )

Description

Adjusts the volume of the sound played.
Appears to only work while the sound is being played.

Arguments

1 number volume
The volume ranges from 0 to 1.
2 number deltaTime = 0
Time to fade the volume from previous to new value from.