WoW API: GetSummonFriendCooldown
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.