Search Results for

    Show / Hide Table of Contents

    Class DyingEventArgs

    Contains all information before a player dies.

    Inheritance
    System.Object
    DyingEventArgs
    OwnerDyingEventArgs
    Implements
    IAttackerEvent
    IPlayerEvent
    IDeniableEvent
    IExiledEvent
    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 Source

    DyingEventArgs(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 Source

    Attacker

    Gets the killing player.

    Declaration
    public Player Attacker { get; }
    Property Value
    Type Description
    Player
    | Improve this Doc View Source

    DamageHandler

    Gets or sets the CustomDamageHandler.

    Declaration
    public CustomDamageHandler DamageHandler { get; set; }
    Property Value
    Type Description
    CustomDamageHandler
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    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>
    | Improve this Doc View Source

    Player

    Gets the dying player.

    Declaration
    public Player Player { get; }
    Property Value
    Type Description
    Player

    Implements

    IAttackerEvent
    IPlayerEvent
    IDeniableEvent
    IExiledEvent

    Extension Methods

    ReflectionExtensions.CopyProperties(Object, Object)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX