Search Results for

    Show / Hide Table of Contents

    Class DamagingShootingTargetEventArgs

    Contains all information before a player damages a shooting target.

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

    Constructors

    | Improve this Doc View Source

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

    Amount

    Gets or sets the damage amount.

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

    DamageHandler

    Gets the PlayerStatsSystem.AttackerDamageHandler.

    Declaration
    public AttackerDamageHandler DamageHandler { get; }
    Property Value
    Type Description
    PlayerStatsSystem.AttackerDamageHandler
    | Improve this Doc View Source

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

    HitLocation

    Gets the exact world location the bullet impacted the target.

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

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

    Item

    Gets the item which is being used to deal the damage.

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

    Player

    Gets the player who's damaging the shooting target.

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

    ShootingTarget

    Gets the shooting target which is being damaged.

    Declaration
    public ShootingTargetToy ShootingTarget { get; }
    Property Value
    Type Description
    ShootingTargetToy

    Implements

    IPlayerEvent
    IDeniableEvent
    IItemEvent
    IExiledEvent

    Extension Methods

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