... 
Important:This page uses the {{lang}} translation
template, which is deprecated.
It should be replaced by the
{{MultiPage}} template if possible.
For more information, see this page.
Todo: The template {{Console command}} is deprecated. Please update to use {{this is a}}. Formatting may appear incorrect
play
is a console command available in all
Source games.
Syntax: play <sound_name>
Play a sound where "sound_name
" is the specified sound with the path from <sound/>.
Example:
play "common/stuck1.wav"
This will play the sound "stuck1.wav" in the folder "sound/common/".
Note:If you omit the file extension, it will also works if the file is a .wav sound.
Warning:If you trigger this command from a map in Hammer editor, never try to pass string parameters to a script function with this input. It will corrupt the VMF structure because of the nested quotation marks, which then must be removed manually with a text editor in order to recover your map.
See also