Class HurtingEventArgs
Contains all information before a player gets damaged.
Inheritance
System.Object
HurtingEventArgs
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 HurtingEventArgs : IAttackerEvent, IPlayerEvent, IDeniableEvent, IExiledEvent
Constructors
| Improve this Doc View SourceHurtingEventArgs(Player, DamageHandlerBase)
Initializes a new instance of the HurtingEventArgs class.
Declaration
public HurtingEventArgs(Player target, DamageHandlerBase damageHandler)
Parameters
Type | Name | Description |
---|---|---|
Player | target | |
PlayerStatsSystem.DamageHandlerBase | damageHandler |
Properties
| Improve this Doc View SourceAmount
Gets or sets the amount of inflicted damage.
Declaration
public float Amount { get; set; }
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 |
IsAllowed
Declaration
public bool IsAllowed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Player
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |