Table of Contents

Class DamagingShootingTargetEventArgs

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

Contains all information before a player damages a shooting target.

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

Constructors

DamagingShootingTargetEventArgs(Player, float, float, Vector3, ShootingTarget, DamageHandlerBase, bool)

Initializes a new instance of the DamagingShootingTargetEventArgs class.

public DamagingShootingTargetEventArgs(Player player, float damage, float distance, Vector3 hitLocation, ShootingTarget shootingTarget, DamageHandlerBase damageHandler, bool isAllowed = true)

Parameters

player Player
damage float
distance float
hitLocation Vector3
shootingTarget ShootingTarget
damageHandler DamageHandlerBase

isAllowed bool

Properties

Amount

Gets or sets the damage amount.

public float Amount { get; set; }

Property Value

float

DamageHandler

Gets the PlayerStatsSystem.AttackerDamageHandler.

public AttackerDamageHandler DamageHandler { get; }

Property Value

AttackerDamageHandler

Distance

Gets or sets the distance between the shooter and the shooting target.

public float Distance { get; set; }

Property Value

float

HitLocation

Gets the exact world location the bullet impacted the target.

public Vector3 HitLocation { get; }

Property Value

Vector3

IsAllowed

Gets or sets a value indicating whether the target can be damaged.

public bool IsAllowed { get; set; }

Property Value

bool

Item

Gets the item which is being used to deal the damage.

public Item Item { get; }

Property Value

Item

Player

Gets the player who's damaging the shooting target.

public Player Player { get; }

Property Value

Player

ShootingTarget

Gets the shooting target which is being damaged.

public ShootingTargetToy ShootingTarget { get; }

Property Value

ShootingTargetToy