WoW API: GetCompanionCooldown

Revision as of 13:50, 8 February 2009 by WoWWiki>Colenzo (New page: {{wowapi}} __NOTOC__ <!-- Describe the purpose of the function, exhausting detail can be saved for a later section --> Returns cooldown information about the companions you have. New in ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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