Эта статья документации для всего, что использует платформу Source. Нажмите для получения дополнительной информации.

Ru/Play: Difference between revisions

From Valve Developer Community
< Ru
Jump to navigation Jump to search
(Created page with "{{lang|play}} {{syntax:ru|play путь/имя_звука.формат}} Воспроизведите звук, в котором "<code>имя_звука.формат</code...")
 
m (Nesciuse moved page Play:ru to Ru/Play over redirect: -Language prefixes)
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{lang|play}}
{{lang|play|title=Play}}__NOTOC__
{{syntax:ru|play путь/имя_звука.формат}}
{{this is a|console command|name=play}}


Воспроизведите звук, в котором
Команда play используется непосредственно в игре. В Hammer Editor нужно использовать {{ent|ambient_generic}}
"<code>имя_звука.формат</code>" - звук будет взят из папки sound/


Пример:
{{syntax|<play путь/имя_звука.формат>}}<br>
<code>play music/hl1_song3.mp3</code> <br>
Воспроизведите звук, в котором<code>"имя_звука.формат"</code>будет взят из папки <sound/><br>
Звук под названием "hl1_song3.mp3" будет взят из папки sound/music/
Пример:<code>play music/hl1_song11.mp3</code><br>
Звук под названием<code>"hl1_song11.mp3"</code>будет взят из папки<code>sound/music/</code><br>


{{note:ru|Если аудио имеет расширение .wav то для него формат писать не обязательно.}}
{{Note|Если аудио имеет расширение<code>.wav</code>, то его формат писать не обязательно. Для файлов<code>.mp3</code> это обязательно.}}
{{warning:ru|С файлами .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.}}
=См. также=
=См. также=
* {{ent|playvol}}
* {{ent|playvol}}
[[Category:Console Commands:ru]]

Latest revision as of 19:29, 10 July 2024

English (en)Русский (ru)Translate (Translate)

play - это консольная команда(en), доступно для всех игр на движке Source Source.

Команда play используется непосредственно в игре. В Hammer Editor нужно использовать ambient_generic

Синтаксис: <play путь/имя_звука.формат>
Воспроизведите звук, в котором"имя_звука.формат"будет взят из папки <sound/>
Пример:play music/hl1_song11.mp3
Звук под названием"hl1_song11.mp3"будет взят из папкиsound/music/

Note.pngПримечание:Если аудио имеет расширение.wav, то его формат писать не обязательно. Для файлов.mp3 это обязательно.
Warning.pngПредупреждение: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.

См. также