Skip to content

Item

The Item class extends Ability with item-specific state and inventory metadata.

NOTE

This page documents members declared directly on Item. Inherited members are available from Ability.


Methods

GetCost()number

Retrieves the cost.

Returned:

  • number - The requested cost.

IsPermanent()boolean

Checks whether it is permanent.

Returned:

  • boolean - True if the condition is met, false otherwise.

IsStackable()boolean

Checks whether it is stackable.

Returned:

  • boolean - True if the condition is met, false otherwise.

HasRecipe()boolean

Checks whether it has recipe.

Returned:

  • boolean - True if the condition is met, false otherwise.

GetSharability()number

Retrieves the sharability.

Returned:

  • number - The requested sharability.

IsDroppable()boolean

Checks whether it is droppable.

Returned:

  • boolean - True if the condition is met, false otherwise.

IsPurchasable()boolean

Checks whether it is purchasable.

Returned:

  • boolean - True if the condition is met, false otherwise.

IsSellable()boolean

Checks whether it is sellable.

Returned:

  • boolean - True if the condition is met, false otherwise.

IsRequireCharges()boolean

Checks whether it is require charges.

IMPORTANT

for wards return false

Returned:

  • boolean - True if the condition is met, false otherwise.

IsKillable()boolean

Checks whether it is killable.

Returned:

  • boolean - True if the condition is met, false otherwise.

IsDisassemblable()boolean

Checks whether it is disassemblable.

Returned:

  • boolean - True if the condition is met, false otherwise.

IsAlertable()boolean

Checks whether it is alertable.

Returned:

  • boolean - True if the condition is met, false otherwise.

GetInitialCharges()number

Retrieves the initial charges.

Returned:

  • number - The requested initial charges.

CastsOnPickup()boolean

Casts the ability using the s on pickup.

Returned:

  • boolean - True if the condition is met, false otherwise.

GetCurrentCharges()number

Retrieves the current charges.

Returned:

  • number - The requested current charges.

GetSecondaryCharges()number

Retrieves the secondary charges.

Returned:

  • number - The requested secondary charges.

IsCombineLocked()boolean

Checks whether it is combine locked.

Returned:

  • boolean - True if the condition is met, false otherwise.

GetPurchaseTime()number

Retrieves the purchase time.

Returned:

  • number - The requested purchase time.

GetAssembledTime()number

Retrieves the assembled time.

Returned:

  • number - The requested assembled time.

IsPurchasedWhileWasDead()boolean

Checks whether it is purchased while was dead.

Returned:

  • boolean - True if the condition is met, false otherwise.

CanBeUsedOutOfInventory()boolean

Checks whether it can be used out of inventory.

Returned:

  • boolean - True if the condition is met, false otherwise.

IsItemEnabled()boolean

Checks whether it is item enabled.

Returned:

  • boolean - True if the condition is met, false otherwise.

GetEnableTime()number

Retrieves the enable time.

Returned:

  • number - The requested enable time.

GetPlayerOwnerID()number

Retrieves the player owner id.

Returned:

  • number - The requested player owner id.

GetPowerTreadsState()Enum.PowerTreadsAttributes

Retrieves the power treads state.

Returned: