Table of Contents

Class ExplosiveGrenade

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

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

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

Constructors

ExplosiveGrenade(ThrowableItem)

Initializes a new instance of the ExplosiveGrenade class.

public ExplosiveGrenade(ThrowableItem itemBase)

Parameters

itemBase ThrowableItem

The base InventorySystem.Items.ThrowableProjectiles.ThrowableItem class.

Properties

BurnDuration

Gets or sets how long the Burned effect will last.

public float BurnDuration { get; set; }

Property Value

float

ConcussDuration

Gets or sets how long the Concussed effect will last.

public float ConcussDuration { get; set; }

Property Value

float

DeafenDuration

Gets or sets how long the Deafened effect will last.

public float DeafenDuration { get; set; }

Property Value

float

FuseTime

Gets or sets how long the fuse will last.

public float FuseTime { get; set; }

Property Value

float

MaxRadius

Gets or sets the maximum radius of the grenade.

public float MaxRadius { get; set; }

Property Value

float

Projectile

Gets a ExplosionGrenadeProjectile to change grenade properties.

public ExplosionGrenadeProjectile Projectile { get; }

Property Value

ExplosionGrenadeProjectile

ScpDamageMultiplier

Gets or sets the multiplier for damage against Scp players.

public float ScpDamageMultiplier { get; set; }

Property Value

float

Methods

Clone()

Clones current ExplosiveGrenade object.

public override Item Clone()

Returns

Item

New ExplosiveGrenade object.

SpawnActive(Vector3, Player)

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

public ExplosionGrenadeProjectile 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

ExplosionGrenadeProjectile

Spawned grenade.

ToString()

Returns the ExplosiveGrenade in a human readable format.

public override string ToString()

Returns

string

A string containing ExplosiveGrenade-related data.