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

Signature:

inRange = IsActionInRange(slot)

Arguments:

  • slot - An action bar slot (number, actionID)

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)