WoW:API IsItemInRange: Difference between revisions
Jump to navigation
Jump to search
(added itemId as possible param) |
m (Move page script moved page API IsItemInRange to API IsItemInRange without leaving a redirect) |
(No difference)
|
Latest revision as of 04:46, 15 August 2023
← WoW API < IsItemInRange
Returns if you are in range of the specified unit to use the specified item.
result = IsItemInRange("itemName" or "itemLink", "unit")
Parameters[edit]
Arguments[edit]
Returns[edit]
- result
- Integer - If in range to perform the action 1. Otherwise 0. nil if the action is invalid.
Example[edit]
if ( IsItemInRange("Heavy Silk Bandage","target") ) then -- light up a part of the interface else -- darken end
Common Ranges[edit]
Bandages: 18 yards