Search Results for

    Show / Hide Table of Contents

    Class ExplodingGrenadeEventArgs

    Contains all information before a grenade explodes.

    Inheritance
    System.Object
    ExplodingGrenadeEventArgs
    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.Map
    Assembly: Exiled.Events.dll
    Syntax
    public class ExplodingGrenadeEventArgs : IPlayerEvent, IDeniableEvent, IExiledEvent

    Constructors

    | Improve this Doc View Source

    ExplodingGrenadeEventArgs(Player, EffectGrenade, Boolean)

    Initializes a new instance of the ExplodingGrenadeEventArgs class.

    Declaration
    public ExplodingGrenadeEventArgs(Player thrower, EffectGrenade grenade, bool isAllowed = true)
    Parameters
    Type Name Description
    Player thrower
    InventorySystem.Items.ThrowableProjectiles.EffectGrenade grenade
    System.Boolean isAllowed
    | Improve this Doc View Source

    ExplodingGrenadeEventArgs(Footprint, Vector3, ExplosionGrenade, Collider[])

    Initializes a new instance of the ExplodingGrenadeEventArgs class.

    Declaration
    public ExplodingGrenadeEventArgs(Footprint thrower, Vector3 position, ExplosionGrenade grenade, Collider[] targets)
    Parameters
    Type Name Description
    Footprinting.Footprint thrower
    UnityEngine.Vector3 position
    InventorySystem.Items.ThrowableProjectiles.ExplosionGrenade grenade
    UnityEngine.Collider[] targets

    Properties

    | Improve this Doc View Source

    IsAllowed

    Gets or sets a value indicating whether or not the grenade can be thrown.

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

    Player

    Gets the player who thrown the grenade.

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

    Position

    Gets the position where the grenade is exploding.

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

    Projectile

    Gets the grenade that is exploding.

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

    TargetsToAffect

    Gets the players who could be affected by the grenade, if any, and the damage that be dealt.

    Declaration
    public List<Player> TargetsToAffect { get; }
    Property Value
    Type Description
    System.Collections.Generic.List<Player>

    Methods

    | Improve this Doc View Source

    Finalize()

    Finalizes an instance of the ExplodingGrenadeEventArgs class.

    Declaration
    protected void Finalize()

    Implements

    IPlayerEvent
    IDeniableEvent
    IExiledEvent

    Extension Methods

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