Table of Contents

Class HurtingEventArgs

Namespace
Exiled.Events.EventArgs.Player
Assembly
Exiled.Events.dll

Contains all information before a player gets damaged.

public class HurtingEventArgs : IAttackerEvent, IPlayerEvent, IDeniableEvent, IExiledEvent
Inheritance
HurtingEventArgs
Implements
Inherited Members
Extension Methods

Constructors

HurtingEventArgs(Player, DamageHandlerBase)

Initializes a new instance of the HurtingEventArgs class.

public HurtingEventArgs(Player target, DamageHandlerBase damageHandler)

Parameters

target Player
damageHandler DamageHandlerBase

Properties

Amount

Gets or sets the amount of inflicted damage.

public float Amount { get; set; }

Property Value

float

Attacker

Gets the attacker Player.

public Player Attacker { get; }

Property Value

Player

DamageHandler

Gets or sets the DamageHandlerBase managing the damage to the target.

public CustomDamageHandler DamageHandler { get; set; }

Property Value

CustomDamageHandler

IsAllowed

Gets or sets a value indicating whether the event is allowed to continue.

public bool IsAllowed { get; set; }

Property Value

bool

IsInstantKill

Gets a value indicating whether the incoming damage is an instant kill.

public bool IsInstantKill { get; }

Property Value

bool

Player

Gets the Player triggering the event.

public Player Player { get; }

Property Value

Player