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

◆ PlaySoundOnObject()

static EffectSound SEffectManager::PlaySoundOnObject ( string sound_set,
Object parent_object,
float play_fade_in = 0,
float stop_fade_out = 0,
bool loop = false )
inlinestaticprotected

Create and play an EffectSound.

Предупреждения
Calls CreateSound, read CreateSound warning
Аргументы
sound_setstring The sound set name of the sound
parent_objectObject The parent Object for the sound to follow
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 строка 247

248 {
249 EffectSound effect_sound = CreateSound(sound_set, parent_object.GetPosition(), play_fade_in, stop_fade_out, loop);
250
251 effect_sound.SetParent( parent_object );
252 effect_sound.SetLocalPosition( vector.Zero );
253 effect_sound.SoundPlay();
254
255 return effect_sound;
256 }
override void SetParent(Object parent_obj)
Set parent for the sound to follow.
Определения EffectSound.c:654
bool SoundPlay()
Plays sound.
Определения EffectSound.c:199
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

Перекрестные ссылки CreateSound(), EffectSound::SetParent(), EffectSound::SoundPlay() и vector::Zero.

Используется в ItemBase::DischargeClient(), ManBase::EEHitByRemote(), ManBase::OnBleedingSourceAdded(), ItemBase::OnIsCharged(), ManBase::OnPlayerRecievedHit(), ItemBase::OnWorkStart(), PlayEmptyingLoopSound(), PlayPouringLoopSound(), PlaySound(), IEntity::PlaySoundSet() и StopEmptyingLoopSound().