1
0

SpeakOnTriggerComponent.cs 572 B

1234567891011121314151617
  1. using Content.Shared.Dataset;
  2. using Robust.Shared.Prototypes;
  3. namespace Content.Server.Chat;
  4. /// <summary>
  5. /// Makes the entity speak when triggered. If the item has UseDelay component, the system will respect that cooldown.
  6. /// </summary>
  7. [RegisterComponent]
  8. public sealed partial class SpeakOnTriggerComponent : Component
  9. {
  10. /// <summary>
  11. /// The identifier for the dataset prototype containing messages to be spoken by this entity.
  12. /// </summary>
  13. [DataField(required: true)]
  14. public ProtoId<LocalizedDatasetPrototype> Pack = string.Empty;
  15. }