Search Results for

    Show / Hide Table of Contents

    Class InteractingShootingTargetEventArgs

    Contains all information before a player interacts with a shooting target.

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

    Constructors

    | Improve this Doc View Source

    InteractingShootingTargetEventArgs(Player, ShootingTarget, ShootingTargetButton, Int32, Int32, Boolean)

    Initializes a new instance of the InteractingShootingTargetEventArgs class.

    Declaration
    public InteractingShootingTargetEventArgs(Player player, ShootingTarget shootingTarget, ShootingTargetButton targetButton, int maxHp, int autoResetTime, bool isAllowed = true)
    Parameters
    Type Name Description
    Player player
    AdminToys.ShootingTarget shootingTarget
    ShootingTargetButton targetButton
    System.Int32 maxHp
    System.Int32 autoResetTime
    System.Boolean isAllowed

    Properties

    | Improve this Doc View Source

    IsAllowed

    Gets or sets a value indicating whether or not the interaction is allowed.

    Declaration
    public bool IsAllowed { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    NewAutoResetTime

    Gets or sets the new auto reset time of the target.

    Declaration
    public int NewAutoResetTime { get; set; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    NewMaxHp

    Gets or sets the new max HP of the target.

    Declaration
    public int NewMaxHp { get; set; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Player

    Gets the player interacting with the shooting target.

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

    ShootingTarget

    Gets the shooting target being interacted with.

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

    TargetButton

    Gets the button the player interacted with.

    Declaration
    public ShootingTargetButton TargetButton { get; }
    Property Value
    Type Description
    ShootingTargetButton

    Implements

    IPlayerEvent
    IDeniableEvent
    IExiledEvent

    Extension Methods

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