Show / Hide Table of Contents

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 Source

AttackAttemptEvent(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 Source

Target

Declaration
public EntityUid? Target { get; }
Property Value
Type Description
System.Nullable<EntityUid>
| Improve this Doc View Source

Uid

Declaration
public EntityUid Uid { get; }
Property Value
Type Description
EntityUid
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾