Class DamagingShootingTargetEventArgs
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
Playerdamage
floatdistance
floathitLocation
Vector3shootingTarget
ShootingTargetdamageHandler
DamageHandlerBaseisAllowed
bool
Properties
Amount
Gets or sets the damage amount.
public float Amount { get; set; }
Property Value
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
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
Item
Gets the item which is being used to deal the damage.
public Item Item { get; }
Property Value
Player
Gets the player who's damaging the shooting target.
public Player Player { get; }
Property Value
ShootingTarget
Gets the shooting target which is being damaged.
public ShootingTargetToy ShootingTarget { get; }