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

◆ PlaySound()

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

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

648 {
649 #ifndef SERVER
650 #ifndef NO_GUI
651 if (position == vector.Zero)
653
654 if (!sound)
655 {
656 sound = SEffectManager.PlaySoundCachedParams(soundset, position);
657 sound.SetAttachmentParent(this);
658 sound.SetAutodestroy(true); // SoundWaveObjects tend to null themselves for unknown reasons, breaking the effect in the process
659 }
660 else
661 {
662 if (!sound.IsSoundPlaying())
663 {
664 sound.SetCurrentPosition(position);
665 sound.SoundPlay();
666 }
667 }
668 #endif
669 #endif
670 }
vector position
Определения DustKickupEffects.c:20
static const vector Zero
Определения EnConvert.c:123
vector GetPosition()
Get the world position of the Effect.
Определения Effect.c:473

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