Table of Contents

Class ExplodingGrenadeEventArgs

Namespace
Exiled.Events.EventArgs.Map
Assembly
Exiled.Events.dll

Contains all information before a grenade explodes.

public class ExplodingGrenadeEventArgs : IPlayerEvent, IDeniableEvent, IExiledEvent
Inheritance
ExplodingGrenadeEventArgs
Implements
Inherited Members
Extension Methods

Constructors

ExplodingGrenadeEventArgs(Player, EffectGrenade, HashSet<Player>, bool)

Initializes a new instance of the ExplodingGrenadeEventArgs class.

public ExplodingGrenadeEventArgs(Player thrower, EffectGrenade grenade, HashSet<Player> targetsToAffect, bool isAllowed = true)

Parameters

thrower Player
grenade EffectGrenade
targetsToAffect HashSet<Player>
isAllowed bool

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

Initializes a new instance of the ExplodingGrenadeEventArgs class.

public ExplodingGrenadeEventArgs(Footprint thrower, Vector3 position, ExplosionGrenade grenade, Collider[] targets, ExplosionType explosionType)

Parameters

thrower Footprint
position Vector3
grenade ExplosionGrenade
targets Collider[]
explosionType ExplosionType

Properties

ExplosionType

Gets or sets the Explosion type.

public ExplosionType ExplosionType { get; set; }

Property Value

ExplosionType

Remarks

Explosion that are not from ExplosionGrenadeProjectile will return ExplosionType.Custom and can't be modified.

IsAllowed

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

public bool IsAllowed { get; set; }

Property Value

bool

Player

Gets the player who thrown the grenade.

public Player Player { get; }

Property Value

Player

Position

Gets the position where the grenade is exploding.

public Vector3 Position { get; }

Property Value

Vector3

Projectile

Gets the grenade that is exploding.

public EffectGrenadeProjectile Projectile { get; }

Property Value

EffectGrenadeProjectile

TargetsToAffect

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

public HashSet<Player> TargetsToAffect { get; }

Property Value

HashSet<Player>

Methods

~ExplodingGrenadeEventArgs()

Finalizes an instance of the ExplodingGrenadeEventArgs class.

protected ~ExplodingGrenadeEventArgs()