WoW:API GetSummonFriendCooldown: Difference between revisions
Jump to navigation
Jump to search
(Created page with '{{subst: :Help:API Function articles/Preload}}') |
m (Move page script moved page API GetSummonFriendCooldown to API GetSummonFriendCooldown without leaving a redirect) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{wowapi}} __NOTOC__ | {{wowapi}} __NOTOC__ | ||
Returns information about the cooldown time of the | Returns information about the cooldown time of the RaF Summon Friend ability. | ||
start, duration = GetSummonFriendCooldown() | |||
== Returns == | == Returns == | ||
;start : Number - The value of {{api|GetTime}}() at the moment the cooldown began, 0 if the ability is ready | |||
;start : Number - The value of | |||
;duration : Number - The length of the cooldown in seconds, 0 if the ability is ready | ;duration : Number - The length of the cooldown in seconds, 0 if the ability is ready | ||
== Example == | == Example == | ||
The snippet below prints the remaining time of the cooldown in seconds. | |||
local timeleft = start + duration - GetTime() | local start, duration = GetSummonFriendCooldown() | ||
print(timeleft) | local timeleft = start + duration - GetTime() | ||
print(timeleft) | |||
Latest revision as of 04:46, 15 August 2023
← WoW API < GetSummonFriendCooldown
Returns information about the cooldown time of the RaF Summon Friend ability.
start, duration = GetSummonFriendCooldown()
Returns[edit]
- 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[edit]
The snippet below prints the remaining time of the cooldown in seconds.
local start, duration = GetSummonFriendCooldown() local timeleft = start + duration - GetTime() print(timeleft)