Class DyingEventArgs
Contains all information before a player dies.
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 DyingEventArgs : IAttackerEvent, IPlayerEvent, IDeniableEvent, IExiledEvent
Constructors
| Improve this Doc View SourceDyingEventArgs(Player, DamageHandlerBase)
Initializes a new instance of the DyingEventArgs class.
Declaration
public DyingEventArgs(Player target, DamageHandlerBase damageHandler)
Parameters
Type | Name | Description |
---|---|---|
Player | target | |
PlayerStatsSystem.DamageHandlerBase | damageHandler |
Properties
| Improve this Doc View SourceAttacker
Gets the killing player.
Declaration
public Player Attacker { get; }
Property Value
Type | Description |
---|---|
Player |
DamageHandler
Gets or sets the CustomDamageHandler.
Declaration
public CustomDamageHandler DamageHandler { get; set; }
Property Value
Type | Description |
---|---|
CustomDamageHandler |
IsAllowed
Gets or sets a value indicating whether or not the player can be killed.
Declaration
public bool IsAllowed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ItemsToDrop
Gets or sets the list of items to be dropped.
Declaration
public List<Item> ItemsToDrop { get;
[Obsolete("This setter has been deprecated")]
set;
}
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<Item> |
Player
Gets the dying player.
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |