Returns whether the player's target is in range of an action


See also Action functions.

Signature:

inRange = IsActionInRange(slot [, "unit"])

Arguments:

  • slot - An action bar slot (number, actionID)
  • unit - A unit to target with the action (string, unitID)

Returns:

  • inRange - 1 if the player's target is in range for the action or 0 if out of range; nil if the action cannot be used on the player's target regardless of range (number)