Returns whether a pet action can be used. Used in the default UI to show pet actions as grayed out when the pet cannot be commanded to perform them (e.g. when the player or pet is stunned).
See also Pet functions, Action functions.
Signature:
usable
=
GetPetActionSlotUsable(index)
Arguments:
index
- Index of a pet action button (between 1 andNUM_PET_ACTION_SLOTS
) (number
)
Returns:
usable
- 1 if the pet action is currently available; otherwise nil (1nil
)