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)); }
private void HandleSoundTrigger(EntityUid uid, SoundOnTriggerComponent component, TriggerEvent args) { if (component.Sound == null) { return; } SoundSystem.Play(Filter.Pvs(component.Owner), component.Sound.GetSound(), uid); }