Table of Contents

Class Throwable

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

A wrapper class for throwable items.

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

Constructors

Throwable(ThrowableItem)

Initializes a new instance of the Throwable class.

public Throwable(ThrowableItem itemBase)

Parameters

itemBase ThrowableItem

The base InventorySystem.Items.ThrowableProjectiles.ThrowableItem class.

Properties

Base

Gets the InventorySystem.Items.ThrowableProjectiles.ThrowableItem base for this item.

public ThrowableItem Base { get; }

Property Value

ThrowableItem

PinPullTime

Gets or sets the amount of time it takes to pull the pin.

public float PinPullTime { get; set; }

Property Value

float

Projectile

Gets a Projectile to change grenade properties.

public Projectile Projectile { get; }

Property Value

Projectile

Repickable

Gets or sets a value indicating whether players can pickup grenade after throw.

public bool Repickable { get; set; }

Property Value

bool

Scale

Gets or sets the scale for the item.

public override Vector3 Scale { get; set; }

Property Value

Vector3

Methods

CancelThrow()

Cancel the the throws of the item.

public void CancelThrow()

Clone()

Clones current Throwable object.

public override Item Clone()

Returns

Item

New Throwable object.

Throw(bool)

Throws the item.

public void Throw(bool fullForce = true)

Parameters

fullForce bool

Whether to use full or weak force.

ToString()

Returns the Throwable in a human readable format.

public override string ToString()

Returns

string

A string containing Throwable-related data.