... ![Icon-Important.png](/w/images/thumb/5/5c/Icon-Important.png/10px-Icon-Important.png)
Important:This page uses the {{lang}} translation
template, which is deprecated.
It should be replaced by the
{{MultiPage}} (or {{Autolang}})
template if possible.
For more information, see this page.
play
is a console command available in all
Source games.
Команда play используется непосредственно в игре. В Hammer Editor нужно использовать ambient_generic
Syntax: <play путь/имя_звука.формат>
Воспроизведите звук, в котором"имя_звука.формат"
будет взят из папки <sound/>
Пример:play music/hl1_song11.mp3
Звук под названием"hl1_song11.mp3"
будет взят из папкиsound/music/
Note:Если аудио имеет расширение.wav
, то его формат писать не обязательно. Для файлов.mp3
это обязательно.
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.
См. также