Class AttackedEvent
Event raised on entities that have been attacked.
Inheritance
System.Object
AttackedEvent
Namespace: Content.Shared.Weapons.Melee.Events
Assembly: Content.Shared.dll
Syntax
public sealed class AttackedEvent : EntityEventArgs
Constructors
| Improve this Doc View SourceAttackedEvent(EntityUid, EntityUid, EntityCoordinates)
Declaration
public AttackedEvent(EntityUid used, EntityUid user, EntityCoordinates clickLocation)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | used | |
EntityUid | user | |
Robust.Shared.Map.EntityCoordinates | clickLocation |
Fields
| Improve this Doc View SourceBonusDamage
Declaration
public DamageSpecifier BonusDamage
Field Value
Type | Description |
---|---|
DamageSpecifier |
Properties
| Improve this Doc View SourceClickLocation
The original location that was clicked by the user.
Declaration
public EntityCoordinates ClickLocation { get; }
Property Value
Type | Description |
---|---|
Robust.Shared.Map.EntityCoordinates |
Used
Entity used to attack, for broadcast purposes.
Declaration
public EntityUid Used { get; }
Property Value
Type | Description |
---|---|
EntityUid |
User
Entity that triggered the attack.
Declaration
public EntityUid User { get; }
Property Value
Type | Description |
---|---|
EntityUid |