WoW API: GetCompanionCooldown

From AddOn Studio
Revision as of 04:45, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API GetCompanionCooldown to API GetCompanionCooldown without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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)

Arguments

type
String (companionType) - Type of the companion being queried ("CRITTER" or "MOUNT")
id
Number - The slot id to query (starts at 1).

Returns

start
Number - the time the cooldown period began, based on GetTime().
duration
Number - the duration of the cooldown period.
isEnabled
Number - 1 if the companion has a cooldown.