Class ExplodingGrenadeEventArgs
Contains all information before a grenade explodes.
Inheritance
System.Object
ExplodingGrenadeEventArgs
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 SourceExplodingGrenadeEventArgs(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 |
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 SourceIsAllowed
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 |
Player
Gets the player who thrown the grenade.
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |
Position
Gets the position where the grenade is exploding.
Declaration
public Vector3 Position { get; }
Property Value
Type | Description |
---|---|
UnityEngine.Vector3 |
Projectile
Gets the grenade that is exploding.
Declaration
public EffectGrenadeProjectile Projectile { get; }
Property Value
Type | Description |
---|---|
EffectGrenadeProjectile |
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 SourceFinalize()
Finalizes an instance of the ExplodingGrenadeEventArgs class.
Declaration
protected void Finalize()