Files
ss14-wega/Content.Shared/Trigger/Components/Triggers/TriggerOnUserInteractHandComponent.cs
ScarKy0 231a93e742 TriggerOnUserInteractHand and TriggerOnUserInteractUsing (#41843)
* init

* handle check

* oops

* cleanup

* fix resolve

---------

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
2025-12-14 02:11:58 +00:00

19 lines
662 B
C#

using Content.Shared.Interaction;
using Robust.Shared.GameStates;
namespace Content.Shared.Trigger.Components.Triggers;
/// <summary>
/// Trigger on <see cref="UserInteractHandEvent"/>, aka when owner clicks on an entity with an empty hand.
/// The trigger user is the entity that got interacted with.
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class TriggerOnUserInteractHandComponent : BaseTriggerOnXComponent
{
/// <summary>
/// Whether the interaction should be marked as handled after it happens.
/// </summary>
[DataField, AutoNetworkedField]
public bool Handle = true;
}