Table of Contents

Class InteractingShootingTargetEventArgs

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

Contains all information before a player interacts with a shooting target.

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

Constructors

InteractingShootingTargetEventArgs(Player, ShootingTarget, ShootingTargetButton, int, int, bool)

Initializes a new instance of the InteractingShootingTargetEventArgs class.

public InteractingShootingTargetEventArgs(Player player, ShootingTarget shootingTarget, ShootingTargetButton targetButton, int maxHp, int autoResetTime, bool isAllowed = true)

Parameters

player Player
shootingTarget ShootingTarget
targetButton ShootingTargetButton
maxHp int
autoResetTime int
isAllowed bool

Properties

IsAllowed

Gets or sets a value indicating whether the interaction is allowed.

public bool IsAllowed { get; set; }

Property Value

bool

NewAutoResetTime

Gets or sets the new auto reset time of the target.

public int NewAutoResetTime { get; set; }

Property Value

int

NewMaxHp

Gets or sets the new max HP of the target.

public int NewMaxHp { get; set; }

Property Value

int

Player

Gets the player interacting with the shooting target.

public Player Player { get; }

Property Value

Player

ShootingTarget

Gets the shooting target being interacted with.

public ShootingTargetToy ShootingTarget { get; }

Property Value

ShootingTargetToy

TargetButton

Gets the button the player interacted with.

public ShootingTargetButton TargetButton { get; }

Property Value

ShootingTargetButton