API IsItemInRange
Talk0
98,472pages on
this wiki
this wiki
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