CDOTA_Item extends CDOTABaseAbility
s
c
#
CanBeUsedOutOfInventory(): bool
s
c
#
GetContainer(): CDOTA_Item_Physical | nil
s
c
#

Get the container for this item.
GetCost(): int
s
c
#
GetCurrentCharges(): int
s
c
#

Get the number of charges this item currently has.
GetInitialCharges(): int
s
c
#

Get the initial number of charges this item has.
GetItemSlot(): -1 | DOTAScriptInventorySlot_t
s
c
#
GetItemState(): int
s
c
#

Gets whether item is unequipped or ready.
GetParent(): handle
s
c
#

Get the parent for this item.
GetPurchaser(): CDOTA_BaseNPC | nil
s
c
#

Get the purchaser for this item.
GetPurchaseTime(): float
s
c
#

Get the purchase time of this item.
GetSecondaryCharges(): int
s
c
#

Get the number of secondary charges this item currently has.
GetShareability(): EShareAbility
s
c
#
IsAlertableItem(): bool
s
c
#
IsCastOnPickup(): bool
s
c
#
IsCombinable(): bool
s
c
#
IsDisassemblable(): bool
s
c
#
IsDroppable(): bool
s
c
#
IsInBackpack(): bool
s
c
#
IsItem(): bool
s
c
#
IsKillable(): bool
s
c
#
IsMuted(): bool
s
c
#
IsPermanent(): bool
s
c
#
IsPurchasable(): bool
s
c
#
IsRecipe(): bool
s
c
#
IsRecipeGenerated(): bool
s
c
#
IsSellable(): bool
s
c
#
IsStackable(): bool
s
c
#
LaunchLoot(autoUsebool, heightfloat, durationfloat, endPointVector): nil
s
c
#
LaunchLootInitialHeight(autoUsebool, initialHeightfloat, launchHeightfloat, durationfloat, endPointVector): nil
s
c
#
OnEquip(): nil
s
c
#
OnUnequip(): nil
s
c
#
RequiresCharges(): bool
s
c
#
SetCanBeUsedOutOfInventory(valuebool): nil
s
c
#
SetCastOnPickup(castOnPickUpbool): nil
s
c
#
SetCurrentCharges(chargesint): nil
s
c
#

Set the number of charges on this item.
SetDroppable(droppablebool): nil
s
c
#
SetItemState(stateint): nil
s
c
#

Sets whether item is unequipped or ready.
SetPurchaser(purchaserCDOTA_BaseNPC | nil): nil
s
c
#

Set the purchaser of record for this item.
SetPurchaseTime(timefloat): nil
s
c
#

Set the purchase time of this item.
SetSecondaryCharges(chargesint): nil
s
c
#

Set the number of secondary charges on this item.
SetSellable(sellablebool): nil
s
c
#
SetShareability(shareabilityEShareAbility): nil
s
c
#
SetStacksWithOtherOwners(stacksWithOtherOwnersbool): nil
s
c
#
SpendCharge(): nil
s
c
#
StacksWithOtherOwners(): bool
s
c
#
Think(): nil
s
c
#

Think this item.