Class DamagingShootingTargetEventArgs
Contains all information before a player damages a shooting target.
Inheritance
System.Object
DamagingShootingTargetEventArgs
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Exiled.Events.EventArgs.Player
Assembly: Exiled.Events.dll
Syntax
public class DamagingShootingTargetEventArgs : IPlayerEvent, IDeniableEvent, IItemEvent, IExiledEvent
Constructors
| Improve this Doc View SourceDamagingShootingTargetEventArgs(Player, Single, Single, Vector3, ShootingTarget, DamageHandlerBase, Boolean)
Initializes a new instance of the DamagingShootingTargetEventArgs class.
Declaration
public DamagingShootingTargetEventArgs(Player player, float damage, float distance, Vector3 hitLocation, ShootingTarget shootingTarget, DamageHandlerBase damageHandler, bool isAllowed = true)
Parameters
Type | Name | Description |
---|---|---|
Player | player | |
System.Single | damage | |
System.Single | distance | |
UnityEngine.Vector3 | hitLocation | |
AdminToys.ShootingTarget | shootingTarget | |
PlayerStatsSystem.DamageHandlerBase | damageHandler | |
System.Boolean | isAllowed |
Properties
| Improve this Doc View SourceAmount
Gets or sets the damage amount.
Declaration
public float Amount { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
DamageHandler
Gets the PlayerStatsSystem.AttackerDamageHandler.
Declaration
public AttackerDamageHandler DamageHandler { get; }
Property Value
Type | Description |
---|---|
PlayerStatsSystem.AttackerDamageHandler |
Distance
Gets or sets the distance between the shooter and the shooting target.
Declaration
public float Distance { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
HitLocation
Gets the exact world location the bullet impacted the target.
Declaration
public Vector3 HitLocation { get; }
Property Value
Type | Description |
---|---|
UnityEngine.Vector3 |
IsAllowed
Gets or sets a value indicating whether or not the target can be damaged.
Declaration
public bool IsAllowed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Item
Gets the item which is being used to deal the damage.
Declaration
public Item Item { get; }
Property Value
Type | Description |
---|---|
Item |
Player
Gets the player who's damaging the shooting target.
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |
ShootingTarget
Gets the shooting target which is being damaged.
Declaration
public ShootingTargetToy ShootingTarget { get; }
Property Value
Type | Description |
---|---|
ShootingTargetToy |