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

◆ CreateSound()

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

Create an EffectSound.

Предупреждения
Read PlayInWorld 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)
enviromentbool Whether to set environment variables (Optional)
Возвращает
EffectSound The created EffectSound

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

145 {
146 EffectSound effect_sound = new EffectSound();
147 effect_sound.SetSoundSet(sound_set);
148 effect_sound.SetPosition(position);
149 effect_sound.SetSoundFadeIn(play_fade_in);
150 effect_sound.SetSoundFadeOut(stop_fade_out);
151 effect_sound.SetSoundLoop(loop);
152 effect_sound.SetEnviromentVariables(enviroment);
153
154 EffectRegister( effect_sound );
155
156 return effect_sound;
157 }
void SetSoundSet(string snd)
Set soundset for the sound.
Определения EffectSound.c:781
void SetSoundLoop(bool loop)
Set if the sound loops.
Определения EffectSound.c:799
void SetSoundFadeIn(float fade_in)
Set the sound fade in duration.
Определения EffectSound.c:882
void SetSoundFadeOut(float fade_out)
Set the sound fade out duration.
Определения EffectSound.c:891
void SetEnviromentVariables(bool setEnvVariables)
Sets whether AddEnvSoundVariables needs to be called during Loading.
Определения EffectSound.c:811
static int EffectRegister(Effect effect)
Registers Effect in SEffectManager.
Определения EffectManager.c:322

Перекрестные ссылки EffectRegister(), EffectSound::SetEnviromentVariables(), EffectSound::SetSoundFadeIn(), EffectSound::SetSoundFadeOut(), EffectSound::SetSoundLoop() и EffectSound::SetSoundSet().

Используется в BoatScript::HandleBoatSplashSound(), HandleEngineSound(), FlashbangEffect::PlaySound(), PlaySound(), PlaySoundCachedParams(), PlaySoundEnviroment(), PlaySoundOnObject(), PlaySoundParams() и UpdateMusic().