Class ExplodingGrenadeEventArgs
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
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
Footprintposition
Vector3grenade
ExplosionGrenadetargets
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
Player
Gets the player who thrown the grenade.
public Player Player { get; }
Property Value
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
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
Methods
~ExplodingGrenadeEventArgs()
Finalizes an instance of the ExplodingGrenadeEventArgs class.
protected ~ExplodingGrenadeEventArgs()