Files
tbd-station-14/Content.Server/NPC/Components/NPCUseActionOnTargetComponent.cs
Nemanja a540b8840e Goliath mob (#30839)
* Goliath mob

* Update asteroid.yml

* mcfuck yourself

* add cloak

* fixes

* Update materials.yml
2024-08-18 12:22:36 -04:00

28 lines
771 B
C#

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;
}