Table of Contents

Class HitEventArgs

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

Contains all information after player sends an attack as an SCP.

public class HitEventArgs : IPlayerEvent, IExiledEvent
Inheritance
HitEventArgs
Implements
Inherited Members
Extension Methods

Constructors

HitEventArgs(Player, AttackResult, HashSet<ReferenceHub>)

Initializes a new instance of the HitEventArgs class.

public HitEventArgs(Player player, AttackResult result, HashSet<ReferenceHub> playerHits)

Parameters

player Player
result AttackResult

the result of the attack.

playerHits HashSet<ReferenceHub>

the list of players who are getting hit.

Properties

Player

Gets the Player triggering the event.

public Player Player { get; }

Property Value

Player

PlayersAffected

Gets the attack result for the server.

public IReadOnlyCollection<Player> PlayersAffected { get; }

Property Value

IReadOnlyCollection<Player>

Result

Gets the attack result for the server.

public AttackResult Result { get; }

Property Value

AttackResult