Table of Contents

Class DyingEventArgs

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

Contains all information before a player dies.

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

Constructors

DyingEventArgs(Player, DamageHandlerBase)

Initializes a new instance of the DyingEventArgs class.

public DyingEventArgs(Player target, DamageHandlerBase damageHandler)

Parameters

target Player
damageHandler DamageHandlerBase

Properties

Attacker

Gets the killing player.

public Player Attacker { get; }

Property Value

Player

DamageHandler

Gets or sets the CustomDamageHandler.

public CustomDamageHandler DamageHandler { get; set; }

Property Value

CustomDamageHandler

IsAllowed

Gets or sets a value indicating whether the player can be killed.

public bool IsAllowed { get; set; }

Property Value

bool

ItemsToDrop

Gets the list of items to be dropped.

public List<Item> ItemsToDrop { get; }

Property Value

List<Item>

Player

Gets the dying player.

public Player Player { get; }

Property Value

Player