WoW:API IsUsableAction: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 33: | Line 33: | ||
---- | ---- | ||
{{Template:WoW API}} | {{Template:WoW API}} | ||
[[Category:API Functions|IsUsableAction]] | |||
[[Category:API Action Functions|IsUsableAction]] |
Revision as of 15:17, 27 August 2005
isUsableAction
Checks to see if a given action is usable, and also if you have the required mana/energy/rage to activate it.
isUsable, notEnoughMana = IsUsableAction(id);
- Arguments
id
The "id" is the actionbutton id.
If you keep your action you want to check for usability on, say, action button 1 on action bar 1, the id is 1. If you keep it on action button 12 on bar 6, it's 6*12 = 72.
- Returns
isUsable, mana
isUseable = 1 or 'nil'
- Example
local isUsable, notEnoughMana = IsUsableAction(1);
- Result
- Description