DayZ 1.30
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 строка 153

154 {
155 EffectSound effect_sound = new EffectSound();
156 effect_sound.SetSoundSet(sound_set);
157 effect_sound.SetPosition(position);
158 effect_sound.SetSoundFadeIn(play_fade_in);
159 effect_sound.SetSoundFadeOut(stop_fade_out);
160 effect_sound.SetSoundLoop(loop);
161 effect_sound.SetEnviromentVariables(enviroment);
162
163 EffectRegister( effect_sound );
164
165 return effect_sound;
166 }
vector position
Определения DustKickupEffects.c:20
void SetSoundSet(string snd)
Set soundset for the sound.
Определения EffectSound.c:798
void SetSoundLoop(bool loop)
Set if the sound loops.
Определения EffectSound.c:816
void SetSoundFadeIn(float fade_in)
Set the sound fade in duration.
Определения EffectSound.c:899
void SetSoundFadeOut(float fade_out)
Set the sound fade out duration.
Определения EffectSound.c:908
void SetEnviromentVariables(bool setEnvVariables)
Sets whether AddEnvSoundVariables needs to be called during Loading.
Определения EffectSound.c:828
static int EffectRegister(Effect effect)
Registers Effect in SEffectManager.
Определения EffectManager.c:331

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

Используется в BoatScript::HandleBoatSplashSound(), FlashbangEffect::PlaySound(), PlaySound(), PlaySoundCachedParams(), DustKickupEffects::PlaySoundEffect(), PlaySoundEnviroment(), PlaySoundOnObject(), PlaySoundParams(), EffCloudDust::SelectFromSurface(), EffWheelContact::SelectFromSurface(), EffCloudDust::SetDefault() и UpdateMusic().