DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ PlaySoundCachedParams()

static EffectSound SEffectManager::PlaySoundCachedParams ( string sound_set,
vector position,
float play_fade_in = 0,
float stop_fade_out = 0,
bool loop = false )
inlinestaticprotected

Create and play an EffectSound, using or creating cached SoundParams.

Предупреждения
Calls CreateSound, read CreateSound warning
Аргументы
sound_setstring The sound set name of the sound
positionvector The position to play the sound
play_fade_infloat The fade in duration of the sound (Optional)
stop_fade_outfloat The fade out duration of the sound (Optional)
loopbool Whether the sound should loop (Optional)
Возвращает
EffectSound The created EffectSound

См. определение в файле EffectManager.c строка 207

208 {
209 SoundParams params = GetCachedSoundParam(sound_set);
210
211 EffectSound effect_sound = CreateSound(params.GetName(), position, play_fade_in, stop_fade_out, loop, false);
212
213 effect_sound.SoundPlayEx(params);
214
215 return effect_sound;
216 }
bool SoundPlayEx(out SoundParams params)
Plays sound.
Определения EffectSound.c:152
static SoundParams GetCachedSoundParam(string soundset)
Get or create a cached SoundParams object.
Определения EffectManager.c:443
static EffectSound CreateSound(string sound_set, vector position, float play_fade_in=0, float stop_fade_out=0, bool loop=false, bool enviroment=false)
Create an EffectSound.
Определения EffectManager.c:144
class SoundObject SoundParams(string name)

Перекрестные ссылки CreateSound(), GetCachedSoundParam(), SoundParams() и EffectSound::SoundPlayEx().

Используется в Land_WarheadStorage_PowerStation::OnVariablesSynchronized(), PlayItemSoundClient(), BoatScript::PlaySound() и PlaySoundEx().