IsItemInRange
Jump to navigation
Jump to search
This function is restricted.
|
This function was deprecated in 10.2.6 and will be removed in the next expansion. |
Returns whether the item is in usable range of the unit.
inRange = IsItemInRange(item [, unit])
Arguments
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
Hotfix (2023-12-11): Partially unrestricted. Querying enemy units while in combat is once again permitted. (Build: 10.2.0.52485)
Hotfix (2023-11-16): Protected. May no longer be called in combat by insecure code. (Build: 10.2.0.52188)
Patch 2.0.1 (2006-12-05): Added.