Class ShotEventArgs
Contains all information after a player has fired a weapon.
Inheritance
System.Object
ShotEventArgs
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 ShotEventArgs : IPlayerEvent, IFirearmEvent, IItemEvent, IExiledEvent
Constructors
| Improve this Doc View SourceShotEventArgs(Player, Firearm, RaycastHit, IDestructible, Single)
Initializes a new instance of the ShotEventArgs class.
Declaration
public ShotEventArgs(Player shooter, Firearm firearm, RaycastHit hit, IDestructible destructible, float damage)
Parameters
Type | Name | Description |
---|---|---|
Player | shooter | |
Firearm | firearm | |
UnityEngine.RaycastHit | hit | |
IDestructible | destructible | The IDestructible hit. |
System.Single | damage |
Properties
| Improve this Doc View SourceCanHurt
Gets or sets a value indicating whether or not the shot can hurt the target.
Declaration
public bool CanHurt { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Damage
Gets or sets the inflicted damage.
Declaration
public float Damage { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Distance
Gets the shot distance.
Declaration
public float Distance { get; }
Property Value
Type | Description |
---|---|
System.Single |
Firearm
Gets the firearm used to shoot.
Declaration
public Firearm Firearm { get; }
Property Value
Type | Description |
---|---|
Firearm |
Hitbox
Gets the hitbox type of the shot. Can be null!.
Declaration
public HitboxIdentity Hitbox { get; }
Property Value
Type | Description |
---|---|
HitboxIdentity |
Item
Declaration
public Item Item { get; }
Property Value
Type | Description |
---|---|
Item |
Player
Gets the player who shot.
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |
Position
Gets the shot position.
Declaration
public Vector3 Position { get; }
Property Value
Type | Description |
---|---|
UnityEngine.Vector3 |
RaycastHit
Gets the raycast result.
Declaration
public RaycastHit RaycastHit { get; }
Property Value
Type | Description |
---|---|
UnityEngine.RaycastHit |
Target
Gets the target of the shot. Can be null!.
Declaration
public Player Target { get; }
Property Value
Type | Description |
---|---|
Player |