Search Results for

    Show / Hide Table of Contents

    Class HurtEventArgs

    Contains all information before a player gets damaged.

    Inheritance
    System.Object
    HurtEventArgs
    Implements
    IAttackerEvent
    IPlayerEvent
    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 HurtEventArgs : IAttackerEvent, IPlayerEvent, IExiledEvent

    Constructors

    | Improve this Doc View Source

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

    Amount

    Gets the amount of inflicted damage.

    Declaration
    public float Amount { get; }
    Property Value
    Type Description
    System.Single
    | Improve this Doc View Source

    Attacker

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

    DamageHandler

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

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

    Player

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

    Implements

    IAttackerEvent
    IPlayerEvent
    IExiledEvent

    Extension Methods

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