Class HurtEventArgs
Contains all information before a player gets damaged.
Inheritance
System.Object
HurtEventArgs
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Exiled.Events.EventArgs.Player
Assembly: Exiled.Events.dll
Syntax
public class HurtEventArgs : IAttackerEvent, IPlayerEvent, IExiledEvent
Constructors
| Improve this Doc View SourceHurtEventArgs(Player, DamageHandlerBase, DamageHandlerBase.HandlerOutput)
Initializes a new instance of the HurtEventArgs class.
Declaration
public HurtEventArgs(Player target, DamageHandlerBase damageHandler, DamageHandlerBase.HandlerOutput handlerOutput)
Parameters
Type | Name | Description |
---|---|---|
Player | target | |
PlayerStatsSystem.DamageHandlerBase | damageHandler | |
PlayerStatsSystem.DamageHandlerBase.HandlerOutput | handlerOutput |
Properties
| Improve this Doc View SourceAmount
Gets the amount of inflicted damage.
Declaration
public float Amount { get; }
Property Value
Type | Description |
---|---|
System.Single |
Attacker
Declaration
public Player Attacker { get; }
Property Value
Type | Description |
---|---|
Player |
DamageHandler
Declaration
public CustomDamageHandler DamageHandler { get; set; }
Property Value
Type | Description |
---|---|
CustomDamageHandler |
HandlerOutput
Gets or sets the action than will be made on the player.
Declaration
public DamageHandlerBase.HandlerOutput HandlerOutput { get; set; }
Property Value
Type | Description |
---|---|
PlayerStatsSystem.DamageHandlerBase.HandlerOutput |
Player
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |