Search Results for

    Show / Hide Table of Contents

    Class Throwable

    A wrapper class for throwable items.

    Inheritance
    System.Object
    TypeCastObject<Item>
    Item
    Throwable
    ExplosiveGrenade
    FlashGrenade
    Scp018
    Scp2176
    Implements
    IWrapper<InventorySystem.Items.ItemBase>
    IWrapper<InventorySystem.Items.ThrowableProjectiles.ThrowableItem>
    Inherited Members
    Item.List
    Item.Serial
    Item.IsInInventory
    Item.Scale
    Item.Type
    Item.Category
    Item.TierFlags
    Item.Weight
    Item.IsAmmo
    Item.IsArmor
    Item.IsKeycard
    Item.IsConsumable
    Item.IsThrowable
    Item.IsUsable
    Item.IsWeapon
    Item.IsLightEmitter
    Item.IsDisarmer
    Item.Owner
    Item.Get(ItemBase)
    Item.Get(UInt16)
    Item.Create(ItemType, Player)
    Item.Give(Player)
    Item.Destroy()
    Item.CreatePickup(Vector3, Quaternion, Boolean)
    Item.ChangeItemOwner(Player, Player)
    TypeCastObject<Item>.Cast<TObject>()
    TypeCastObject<Item>.Cast<TObject>(TObject)
    TypeCastObject<Item>.As<TObject>()
    TypeCastObject<Item>.Is<TObject>(TObject)
    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 Source

    Throwable(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 Source

    Base

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

    Declaration
    public ThrowableItem Base { get; }
    Property Value
    Type Description
    InventorySystem.Items.ThrowableProjectiles.ThrowableItem
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    Projectile

    Gets a Projectile to change grenade properties.

    Declaration
    public Projectile Projectile { get; }
    Property Value
    Type Description
    Projectile
    | Improve this Doc View Source

    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 Source

    Clone()

    Clones current Throwable object.

    Declaration
    public override Item Clone()
    Returns
    Type Description
    Item

    New Throwable object.

    Overrides
    Item.Clone()
    | Improve this Doc View Source

    Throw(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.

    | Improve this Doc View Source

    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.

    Overrides
    Item.ToString()

    Implements

    IWrapper<T>
    IWrapper<T>

    Extension Methods

    ReflectionExtensions.CopyProperties(Object, Object)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX