Garry's Mod Wiki

CSoundPatch:PlayEx

  CSoundPatch:PlayEx( number volume, number pitch )

Description

Same as CSoundPatch:Play but with 2 extra arguments allowing to set volume and pitch directly.

Arguments

1 number volume
The volume ranges from 0 to 1.
2 number pitch
The pitch can range from 0-255.