play
< Ru
		
		
		
		Jump to navigation
		Jump to search
		play  - это   консольная команда, доступно для всех игр на движке  Source.
 Source.
Команда play используется непосредственно в игре. В Hammer Editor нужно использовать ambient_generic
Синтаксис: <play путь/имя_звука.формат>
Воспроизведите звук, в котором"имя_звука.формат"будет взят из папки <sound/>
Пример:play music/hl1_song11.mp3
Звук под названием"hl1_song11.mp3"будет взят из папкиsound/music/
 Примечание:Если аудио имеет расширение
Примечание:Если аудио имеет расширение.wav, то его формат писать не обязательно. Для файлов.mp3 это обязательно. Предупреждение: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.
Предупреждение: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.

























