WoW API: GetCompanionCooldown
Jump to navigation
Jump to search
← WoW API < GetCompanionCooldown
Returns cooldown information about the companions you have. New in Patch 3.0
startTime, duration, isEnabled = GetCompanionCooldown("type", id)
Parameters
Arguments
- ("type", id)
- type
- String - The TypeID to query (e.g. "CRITTER", or "MOUNT")
- id
- Integer - The slot id to query (starts at 1).
Returns
- startTime, duration, isEnabled
- start
- the time the cooldown period began
- duration
- the duration of the cooldown period
- enabled
- 1 if the companion has a cooldown, 0 otherwise