Files
tbd-station-14/Content.Shared/Trigger/Components/Effects/EntityEffectOnTriggerComponent.cs
2025-10-19 14:42:18 +00:00

25 lines
748 B
C#

using Content.Shared.EntityEffects;
using Robust.Shared.GameStates;
namespace Content.Shared.Trigger.Components.Effects;
/// <summary>
/// Applies a list of entity effects to the owning entity when triggered.
/// If TargetUser is true then they will be applied to the user instead.
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class EntityEffectOnTriggerComponent : BaseXOnTriggerComponent
{
/// <summary>
/// The effects to apply.
/// </summary>
[DataField, AutoNetworkedField]
public EntityEffect[] Effects;
/// <summary>
/// Optional scale multiplier for the effects.
/// </summary>
[DataField, AutoNetworkedField]
public float Scale = 1f;
}