WoW:API UseAction: Difference between revisions
Jump to navigation
Jump to search
(/* API UseAction /* started info from a comment by Sarf) |
mNo edit summary |
||
Line 1: | Line 1: | ||
UseAction ( | UseAction (ID,#{,target}) | ||
The first number is the action ID. | The first number is the action ID. | ||
Line 5: | Line 5: | ||
Each button on your action bar has an ID. The first button id is 1, and so on. There are 10 action bars in all, thus the highets action bar is 120. | Each button on your action bar has an ID. The first button id is 1, and so on. There are 10 action bars in all, thus the highets action bar is 120. | ||
The second number is either 1 or 0. The third number is whether the action should be executed on yourself (1 = on yourself, 0 or nil, on your target or give you the spell targeting cursor). | The second number is either 1 or 0. The third number is optional and represents whether the action should be executed on yourself (1 = on yourself, 0 or nil, on your target or give you the spell targeting cursor). The default appears to be 0. |
Revision as of 22:53, 26 January 2005
UseAction (ID,#{,target})
The first number is the action ID.
Each button on your action bar has an ID. The first button id is 1, and so on. There are 10 action bars in all, thus the highets action bar is 120.
The second number is either 1 or 0. The third number is optional and represents whether the action should be executed on yourself (1 = on yourself, 0 or nil, on your target or give you the spell targeting cursor). The default appears to be 0.