| 123456789101112131415161718192021222324252627 |
- using Content.Server.NPC.Systems;
- using Content.Shared.Actions;
- using Robust.Shared.Prototypes;
- namespace Content.Server.NPC.Components;
- /// <summary>
- /// This is used for an NPC that constantly tries to use an action on a given target.
- /// </summary>
- [RegisterComponent, Access(typeof(NPCUseActionOnTargetSystem))]
- public sealed partial class NPCUseActionOnTargetComponent : Component
- {
- /// <summary>
- /// HTN blackboard key for the target entity
- /// </summary>
- [DataField]
- public string TargetKey = "Target";
- /// <summary>
- /// Action that's going to attempt to be used.
- /// </summary>
- [DataField(required: true)]
- public EntProtoId<EntityWorldTargetActionComponent> ActionId;
- [DataField]
- public EntityUid? ActionEnt;
- }
|