Class AttackAttemptEvent
Raised Directed at a user to check whether they are allowed to attack a target.
Inheritance
System.Object
AttackAttemptEvent
Namespace: Content.Shared.Interaction.Events
Assembly: Content.Shared.dll
Syntax
public sealed class AttackAttemptEvent : CancellableEntityEventArgs
Remarks
Combat will also check the general interaction blockers, so this event should only be used for combat-specific action blocking.
Constructors
| Improve this Doc View SourceAttackAttemptEvent(EntityUid, Nullable<EntityUid>)
Declaration
public AttackAttemptEvent(EntityUid uid, EntityUid? target = null)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | uid | |
System.Nullable<EntityUid> | target |
Properties
| Improve this Doc View SourceTarget
Declaration
public EntityUid? Target { get; }
Property Value
Type | Description |
---|---|
System.Nullable<EntityUid> |
Uid
Declaration
public EntityUid Uid { get; }
Property Value
Type | Description |
---|---|
EntityUid |