Search Results for

    Show / Hide Table of Contents

    Class ShootingEventArgs

    Contains all information before a player fires a weapon.

    Inheritance
    System.Object
    ShootingEventArgs
    Implements
    IPlayerEvent
    IDeniableEvent
    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 ShootingEventArgs : IPlayerEvent, IDeniableEvent, IFirearmEvent, IItemEvent, IExiledEvent

    Constructors

    | Improve this Doc View Source

    ShootingEventArgs(Player, Firearm, ShotMessage)

    Initializes a new instance of the ShootingEventArgs class.

    Declaration
    public ShootingEventArgs(Player shooter, Firearm firearm, ShotMessage msg)
    Parameters
    Type Name Description
    Player shooter
    InventorySystem.Items.Firearms.Firearm firearm
    InventorySystem.Items.Firearms.BasicMessages.ShotMessage msg

    Properties

    | Improve this Doc View Source

    Firearm

    Gets the target Firearm.

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

    IsAllowed

    Gets or sets a value indicating whether or not the shot can be fired.

    Declaration
    public bool IsAllowed { get; set; }
    Property Value
    Type Description
    System.Boolean
    | 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's shooting.

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

    ShotMessage

    Gets or sets the ShotMessage for the event.

    Declaration
    public ShotMessage ShotMessage { get; set; }
    Property Value
    Type Description
    InventorySystem.Items.Firearms.BasicMessages.ShotMessage
    | Improve this Doc View Source

    ShotPosition

    Gets or sets the position of the shot.

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

    TargetNetId

    Gets or sets the netId of the target of the shot.

    Declaration
    public uint TargetNetId { get; set; }
    Property Value
    Type Description
    System.UInt32

    Implements

    IPlayerEvent
    IDeniableEvent
    IFirearmEvent
    IItemEvent
    IExiledEvent

    Extension Methods

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