Files
tbd-station-14/Content.Shared/Damage/Components/RequireProjectileTargetComponent.cs

15 lines
451 B
C#

using Robust.Shared.GameStates;
namespace Content.Shared.Damage.Components;
/// <summary>
/// Prevent the object from getting hit by projetiles unless you target the object.
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
[Access(typeof(RequireProjectileTargetSystem))]
public sealed partial class RequireProjectileTargetComponent : Component
{
[DataField, AutoNetworkedField]
public bool Active = true;
}