m
Move page script moved page API CastPetAction to WoW:API CastPetAction without leaving a redirect
mNo edit summary |
m (Move page script moved page API CastPetAction to WoW:API CastPetAction without leaving a redirect) |
||
| (4 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
{{wowapi}} | |||
<center>'''CastPetAction''' </center> | <center>'''CastPetAction''' </center> | ||
Cast the corresponding pet skill. | Cast the corresponding pet skill. | ||
CastPetAction(index); | CastPetAction(index, [unit]); | ||
---- | ---- | ||
| Line 10: | Line 11: | ||
: (index) | : (index) | ||
:; index : Number - The index of the pet skill for query. | :; index : Number - The index of the pet skill for query. | ||
: (unit) | |||
:; unit : [[UnitId]] - Optional UnitId | |||
---- | ---- | ||
| Line 18: | Line 22: | ||
---- | ---- | ||
;''Example'' | ;''Example'' | ||
Cast by specified action name | |||
for i=1, NUM_PET_ACTION_SLOTS, 1 do | for i=1, NUM_PET_ACTION_SLOTS, 1 do | ||
| Line 32: | Line 36: | ||
;''Description'' | ;''Description'' | ||
: Cast the corresponding pet skill. | : Cast the corresponding pet skill. Requires a button press. | ||