using Robust.Shared.Audio; using Robust.Shared.GameStates; namespace Content.Shared.Trigger.Components.Effects; /// /// Will play a sound in PVS range when triggered. /// If TargetUser is true it will be played at their position. /// [RegisterComponent, NetworkedComponent, AutoGenerateComponentState] public sealed partial class EmitSoundOnTriggerComponent : BaseXOnTriggerComponent { /// /// The to play. /// [DataField(required: true), AutoNetworkedField] public SoundSpecifier? Sound; /// /// Play the sound at the position instead of parented to the source entity. /// Useful if the entity is deleted after. /// [DataField, AutoNetworkedField] public bool Positional; /// /// Should this sound be predicted for the User? /// [DataField, AutoNetworkedField] public bool Predicted; }