private void HandleSoundTrigger(EntityUid uid, SoundOnTriggerComponent component, TriggerEvent args)
 {
     if (component.Sound == null)
     {
         return;
     }
     SoundSystem.Play(Filter.Pvs(component.Owner), component.Sound.GetSound(), AudioHelpers.WithVariation(0.01f));
 }
Exemple #2
0
 private void HandleSoundTrigger(EntityUid uid, SoundOnTriggerComponent component, TriggerEvent args)
 {
     if (component.Sound == null)
     {
         return;
     }
     SoundSystem.Play(Filter.Pvs(component.Owner), component.Sound.GetSound(), uid);
 }