WoW:API PickupPetAction: Difference between revisions
mNo edit summary |
m (Move page script moved page API PickupPetAction to API PickupPetAction without leaving a redirect) |
||
| (4 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
{{wowapi}} | |||
{{protectedcombatapi|2.2}} | |||
Pick up a pet action for drag-and-drop. | Pick up a pet action for drag-and-drop. | ||
| Line 10: | Line 11: | ||
:;petActionSlot : Numeric - The pet action slot to pick the action up from (1-10). | :;petActionSlot : Numeric - The pet action slot to pick the action up from (1-10). | ||
=== Returns === | === Returns === | ||
: | :''nil'' | ||
| Line 18: | Line 19: | ||
: Be very careful about picking up the pet control actions (Attack/Follow/Stay/Aggressive/Defensive/Passive), because if you lose them, there's no way to get them back. | : Be very careful about picking up the pet control actions (Attack/Follow/Stay/Aggressive/Defensive/Passive), because if you lose them, there's no way to get them back. | ||
__NOTOC__ | __NOTOC__ | ||
Latest revision as of 04:47, 15 August 2023
This function is protected, and cannot be called from insecure code while in in combat.
|
Pick up a pet action for drag-and-drop.
PickupPetAction(petActionSlot)
Parameters
Arguments
- (petActionSlot)
- petActionSlot
- Numeric - The pet action slot to pick the action up from (1-10).
Returns
- nil
Details
- If the slot is empty, nothing happens, otherwise the action from the slot is placed on the cursor, and the slot is filled with whatever action was currently being drag-and-dropped (The slot is emptied if the cursor was empty).
- Be very careful about picking up the pet control actions (Attack/Follow/Stay/Aggressive/Defensive/Passive), because if you lose them, there's no way to get them back.