WoW API: GetSummonFriendCooldown

From AddOn Studio
Revision as of 00:46, 17 January 2010 by WoWWiki>Sippeangelo (Created page with '{{subst: :Help:API Function articles/Preload}}')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < GetSummonFriendCooldown

Returns information about the cooldown time of the players summon friend ability.

start, duration = GetSummonFriendCooldown()

Arguments

None.

Returns

start, duration
start
Number - The value of GetTime() at the moment the cooldown began, 0 if the ability is ready
duration
Number - The length of the cooldown in seconds, 0 if the ability is ready


Example

local start, duration = GetSummonFriendCooldown()
local timeleft = start + duration - GetTime()
print(timeleft)

Result

Remaining time of the cooldown in seconds.