Class DiedEventArgs
Contains all information after a player dies.
Inheritance
System.Object
DiedEventArgs
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 DiedEventArgs : IAttackerEvent, IPlayerEvent, IExiledEvent
Constructors
| Improve this Doc View SourceDiedEventArgs(Player, RoleTypeId, DamageHandlerBase)
Initializes a new instance of the DiedEventArgs class.
Declaration
public DiedEventArgs(Player target, RoleTypeId targetOldRole, DamageHandlerBase damageHandler)
Parameters
Type | Name | Description |
---|---|---|
Player | target | |
PlayerRoles.RoleTypeId | targetOldRole | Target's old PlayerRoles.RoleTypeId. |
PlayerStatsSystem.DamageHandlerBase | damageHandler |
Properties
| Improve this Doc View SourceAttacker
Gets the attacker.
Declaration
public Player Attacker { get; }
Property Value
Type | Description |
---|---|
Player |
DamageHandler
Gets or sets the DamageHandler.
Declaration
public CustomDamageHandler DamageHandler { get; set; }
Property Value
Type | Description |
---|---|
CustomDamageHandler |
Player
Gets the dead player.
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |
TargetOldRole
Gets the old PlayerRoles.RoleTypeId from the killed player.
Declaration
public RoleTypeId TargetOldRole { get; }
Property Value
Type | Description |
---|---|
PlayerRoles.RoleTypeId |