Play: Difference between revisions
Jump to navigation
Jump to search
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.
Joheskiller (talk | contribs) (Created page with "{{DISPLAYTITLE:play}} {{syntax|play <sound_name>}} Play a sound where "<code>sound_name</code>" is the specified sound with the path from <sound/>. Example: <code>play "comm...") |
No edit summary |
||
Line 12: | Line 12: | ||
{{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.}} | {{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 = | |||
* {{ent|playvol}} | |||
[[Category:Console Commands]] | [[Category:Console Commands]] |
Revision as of 07:50, 10 June 2021
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/".

