precache_sound
- Синтаксис
-
native precache_sound(const name[]);
Переменная | Описание |
---|---|
name |
Path to the sound file |
- Описание
- Precaches a sound file.
- Пометка
-
Can only be used inside of the plugin_precache() forward.
- Пометка
-
The filepath is always relative to the "sound" folder, and the file has to be a wav file. Precaching a file with this will add it to the engine sound table, making it available for usage in emit_sound() for example.
- Пометка
-
Precaching other filetypes (such as mp3 music), optionally in different locations, has to be done with precache_generic()
- Возвращает
- Unique cache id of the sound