Search Results for

    Show / Hide Table of Contents

    Class ShotEventArgs

    Contains all information after a player has fired a weapon.

    Inheritance
    System.Object
    ShotEventArgs
    Implements
    IPlayerEvent
    IFirearmEvent
    IItemEvent
    IExiledEvent
    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 Source

    ShotEventArgs(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 Source

    CanHurt

    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
    | Improve this Doc View Source

    Damage

    Gets or sets the inflicted damage.

    Declaration
    public float Damage { get; set; }
    Property Value
    Type Description
    System.Single
    | Improve this Doc View Source

    Distance

    Gets the shot distance.

    Declaration
    public float Distance { get; }
    Property Value
    Type Description
    System.Single
    | Improve this Doc View Source

    Firearm

    Gets the firearm used to shoot.

    Declaration
    public Firearm Firearm { get; }
    Property Value
    Type Description
    Firearm
    | Improve this Doc View Source

    Hitbox

    Gets the hitbox type of the shot. Can be null!.

    Declaration
    public HitboxIdentity Hitbox { get; }
    Property Value
    Type Description
    HitboxIdentity
    | Improve this Doc View Source

    Item

    Declaration
    public Item Item { get; }
    Property Value
    Type Description
    Item
    | Improve this Doc View Source

    Player

    Gets the player who shot.

    Declaration
    public Player Player { get; }
    Property Value
    Type Description
    Player
    | Improve this Doc View Source

    Position

    Gets the shot position.

    Declaration
    public Vector3 Position { get; }
    Property Value
    Type Description
    UnityEngine.Vector3
    | Improve this Doc View Source

    RaycastHit

    Gets the raycast result.

    Declaration
    public RaycastHit RaycastHit { get; }
    Property Value
    Type Description
    UnityEngine.RaycastHit
    | Improve this Doc View Source

    Target

    Gets the target of the shot. Can be null!.

    Declaration
    public Player Target { get; }
    Property Value
    Type Description
    Player

    Implements

    IPlayerEvent
    IFirearmEvent
    IItemEvent
    IExiledEvent

    Extension Methods

    ReflectionExtensions.CopyProperties(Object, Object)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX