Table of Contents

Class FlashGrenade

Namespace
Exiled.API.Features.Items
Assembly
Exiled.API.dll

A wrapper class for InventorySystem.Items.ThrowableProjectiles.FlashbangGrenade.

public class FlashGrenade : Throwable, IWrapper<ItemBase>, IWrapper<ThrowableItem>
Inheritance
FlashGrenade
Implements
IWrapper<ItemBase>
IWrapper<ThrowableItem>
Inherited Members
Extension Methods

Constructors

FlashGrenade(ThrowableItem)

Initializes a new instance of the FlashGrenade class.

public FlashGrenade(ThrowableItem itemBase)

Parameters

itemBase ThrowableItem

The base InventorySystem.Items.ThrowableProjectiles.ThrowableItem class.

Properties

AdditionalBlindedEffect

Gets or sets the additional duration of the Blinded effect.

public float AdditionalBlindedEffect { get; set; }

Property Value

float

FuseTime

Gets or sets how long the fuse will last.

public float FuseTime { get; set; }

Property Value

float

MinimalDurationEffect

Gets or sets the minimum duration of player can take the effect.

public float MinimalDurationEffect { get; set; }

Property Value

float

Projectile

Gets a FlashbangProjectile to change grenade properties.

public FlashbangProjectile Projectile { get; }

Property Value

FlashbangProjectile

SurfaceDistanceIntensifier

Gets or sets the how mush the flash grenade going to be intensified when explode at Surface.

public float SurfaceDistanceIntensifier { get; set; }

Property Value

float

Methods

Clone()

Clones current FlashGrenade object.

public override Item Clone()

Returns

Item

New FlashGrenade object.

SpawnActive(Vector3, Player)

Spawns an active grenade on the map at the specified location.

public FlashbangProjectile SpawnActive(Vector3 position, Player owner = null)

Parameters

position Vector3

The location to spawn the grenade.

owner Player

Optional: The Player owner of the grenade.

Returns

FlashbangProjectile

Spawned grenade.

ToString()

Returns the FlashGrenade in a human readable format.

public override string ToString()

Returns

string

A string containing FlashGrenade-related data.