wowpedia
Main Menu


Returns whether the item is in usable range of the unit.

inRange = IsItemInRange(item [, unit])

Arguments

item
number|string : Item ID, Link or Name - If using an item name, requires the item to be in your inventory. Item IDs and links don't have this requirement.
unit
string? : UnitId - Defaults to "target"

Returns

inRange
boolean - Whether the item is in range; Returns nil if there is no unit targeted or the item ID is invalid.

Example

Prints if you are within 4 yards range of the target by checking the  [Gin-Ji Knife Set] item range.[1]

/dump IsItemInRange(90175)

Patch changes

Bc icon Patch 2.0.1 (2006-12-05): Added.

References