ArtifactMusicTriggerComponent.cs 419 B

1234567891011121314
  1. namespace Content.Server.Xenoarchaeology.XenoArtifacts.Triggers.Components;
  2. /// <summary>
  3. /// Triggers when an instrument is played nearby
  4. /// </summary>
  5. [RegisterComponent]
  6. public sealed partial class ArtifactMusicTriggerComponent : Component
  7. {
  8. /// <summary>
  9. /// how close does the artifact have to be to the instrument to activate
  10. /// </summary>
  11. [DataField("range")]
  12. public float Range = 5;
  13. }