RSS

Четверг, 28.03.2024, 15:38
Главная » WoW API » API Функции » Питомцы »

GetPetActionCooldown

[ править ]
Returns cooldown information about a given pet action slot.
[клоны]
Returns cooldown information about a given pet action slot.

Signature:
Code
start, duration, enable = GetPetActionCooldown(index)

Arguments:
  • index - Index of a pet action button (between 1 and NUM_PET_ACTION_SLOTS) (number)

Returns:
  • start - The value of GetTime() at the moment the cooldown began, or 0 if the action is ready (number)
  • duration - The length of the cooldown, or 0 if the action is ready (number)
  • enable - 1 if a Cooldown UI element should be used to display the cooldown, otherwise 0. (Does not always correlate with whether the action is ready.) (number)

Также смотрите: Питомцы , Action functions, Pet functions
Ссылки: http://wowprogramming.com/docs/api/GetPetActionCooldown