Lore archive · Warcraft Wiki, 2023 dump
API GetInventoryItemCooldown
Last wiki revision 2022-07-29
Get cooldown information for an inventory item. start, duration, enable = GetInventoryItemCooldown(unit, invSlotId)
- unit: : UnitId - The unit whose inventory is to be queried.
- invSlotId: : InventorySlotId - to be queried, obtained via GetInventorySlotInfo.
- start: - The start time of the cooldown period, or 0 if there is no cooldown (or no item in the slot)
- duration: - The duration of the cooldown period (NOT the remaining time). 0 if the item has no use/cooldown or the slot is empty.
- enable: - Returns 1 or 0. 1 if the inventory item is capable of having a cooldown, 0 if not.
Source
https://warcraft.wiki.gg/wiki/API_GetInventoryItemCooldown · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.