Class HurtingEventArgs
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
PlayerdamageHandler
DamageHandlerBase
Properties
Amount
Gets or sets the amount of inflicted damage.
public float Amount { get; set; }
Property Value
Attacker
Gets the attacker Player.
public Player Attacker { get; }
Property Value
DamageHandler
Gets or sets the DamageHandlerBase managing the damage to the target.
public CustomDamageHandler DamageHandler { get; set; }
Property Value
IsAllowed
Gets or sets a value indicating whether the event is allowed to continue.
public bool IsAllowed { get; set; }
Property Value
IsInstantKill
Gets a value indicating whether the incoming damage is an instant kill.
public bool IsInstantKill { get; }
Property Value
Player
Gets the Player triggering the event.
public Player Player { get; }