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

◆ PlaySound()

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

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

640 {
641 #ifndef SERVER
642 if (position == vector.Zero)
643 position = GetPosition();
644
645 if (!sound)
646 {
647 sound = SEffectManager.PlaySoundCachedParams(soundset, position);
648 sound.SetAttachmentParent(this);
649 sound.SetAutodestroy(true); // SoundWaveObjects tend to null themselves for unknown reasons, breaking the effect in the process
650 }
651 else
652 {
653 if (!sound.IsSoundPlaying())
654 {
655 sound.SetCurrentPosition(position);
656 sound.SoundPlay();
657 }
658 }
659 #endif
660 }
class JsonUndergroundAreaTriggerData GetPosition
Определения UndergroundAreaLoader.c:9

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