Returns a sound parented to the specified entity.
You can only create one CSoundPatch per audio file, per entity at the same time.
Valid sample rates: 11025 Hz, 22050 Hz and 44100 Hz, otherwise you may see this kind of message:
Unsupported 32-bit wave file your_sound.wav and
Invalid sample rate (48000) for sound 'your_sound.wav'
1 Entity targetEnt
The target entity.
2 string soundName
The sound to play.
The sound object. You should keep a reference to this object for as long as you wish the sound to play!
Play a sound everywhere, similar to surface.PlaySound but available clientside and serverside.