RSS

Пятница, 15.11.2024, 01:04
Главная » WoW API » API Функции » Действия »

GetActionCount

[ править ]
Returns the number of uses remaining for the given action slot.
[клоны]
Returns the number of uses remaining for the given action slot. Applies to spells that require reagents, items that stack, or items with charges; used in the default UI to display the count on action buttons.

Returns 0 for any action that does not use a count. To distinguish between actions which do not use a count and actions which do but whose current count is 0, see IsConsumableAction.

Signature:
Code
count = GetActionCount(slot)

Arguments:
  • slot - An action bar slot (number, actionID)

Returns:
  • count - Number of times the action can be used (number)

Также смотрите: Действия , Action functions
Ссылки: http://wowprogramming.com/docs/api/GetActionCount