Class Throwable
A wrapper class for throwable items.
Inheritance
System.Object
Throwable
Implements
IWrapper<InventorySystem.Items.ItemBase>
IWrapper<InventorySystem.Items.ThrowableProjectiles.ThrowableItem>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Exiled.API.Features.Items
Assembly: Exiled.API.dll
Syntax
public class Throwable : Item, IWrapper<ItemBase>, IWrapper<ThrowableItem>
Constructors
| Improve this Doc View SourceThrowable(ThrowableItem)
Initializes a new instance of the Throwable class.
Declaration
public Throwable(ThrowableItem itemBase)
Parameters
Type | Name | Description |
---|---|---|
InventorySystem.Items.ThrowableProjectiles.ThrowableItem | itemBase | The base InventorySystem.Items.ThrowableProjectiles.ThrowableItem class. |
Properties
| Improve this Doc View SourceBase
Gets the InventorySystem.Items.ThrowableProjectiles.ThrowableItem base for this item.
Declaration
public ThrowableItem Base { get; }
Property Value
Type | Description |
---|---|
InventorySystem.Items.ThrowableProjectiles.ThrowableItem |
PinPullTime
Gets or sets the amount of time it takes to pull the pin.
Declaration
public float PinPullTime { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Projectile
Gets a Projectile to change grenade properties.
Declaration
public Projectile Projectile { get; }
Property Value
Type | Description |
---|---|
Projectile |
Repickable
Gets or sets a value indicating whether players can pickup grenade after throw.
Declaration
public bool Repickable { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceClone()
Clones current Throwable object.
Declaration
public override Item Clone()
Returns
Type | Description |
---|---|
Item | New Throwable object. |
Overrides
| Improve this Doc View SourceThrow(Boolean)
Throws the item.
Declaration
public void Throw(bool fullForce = true)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | fullForce | Whether to use full or weak force. |
ToString()
Returns the Throwable in a human readable format.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string containing Throwable-related data. |