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

◆ PlaySound()

void BoatScript::PlaySound ( string soundset,
inout EffectSound sound,
vector position = vector.Zero )
inlineprotected

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

584 {
585 #ifndef SERVER
586 if (position == vector.Zero)
587 position = GetPosition();
588
589 if (!sound)
590 {
591 sound = SEffectManager.PlaySoundCachedParams(soundset, position);
592 sound.SetAttachmentParent(this);
593 sound.SetAutodestroy(true); // SoundWaveObjects tend to null themselves for unknown reasons, breaking the effect in the process
594 }
595 else
596 {
597 if (!sound.IsSoundPlaying())
598 {
599 sound.SetCurrentPosition(position);
600 sound.SoundPlay();
601 }
602 }
603 #endif
604 }
class JsonUndergroundAreaTriggerData GetPosition
Определения UndergroundAreaLoader.c:9

Перекрестные ссылки GetPosition, SEffectManager::PlaySoundCachedParams(), EffectSound::SetAutodestroy() и vector::Zero.