RSS

Пятница, 15.11.2024, 01:35
Главная » WoW API » API Функции » Питомцы »

GetPetActionSlotUsable

[ править ]
Returns whether a pet action can be used.
[клоны]
Returns whether a pet action can be used. Used in the default UI to show pet actions as grayed out when the pet cannot be commanded to perform them (e.g. when the player or pet is stunned).

Signature:
Code
usable = GetPetActionSlotUsable(index)

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

Returns:
  • usable - 1 if the pet action is currently available; otherwise nil (1nil)

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