Class HitEventArgs
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
playerPlayerresultAttackResultthe result of the attack.
playerHitsHashSet<ReferenceHub>the list of players who are getting hit.
Properties
Player
Gets the Player triggering the event.
public Player Player { get; }
Property Value
PlayersAffected
Gets the attack result for the server.
public IReadOnlyCollection<Player> PlayersAffected { get; }
Property Value
Result
Gets the attack result for the server.
public AttackResult Result { get; }
Property Value
- AttackResult