m
1.12 info, formatting
(corrected Follow distance) |
m (1.12 info, formatting) |
||
| Line 1: | Line 1: | ||
{{wowapi}} | |||
Returns | Returns 1 if you are in range of the specified unit to perform the action specified by distIndex (returns nil otherwise). | ||
---- | ---- | ||
| Line 9: | Line 9: | ||
:;unit : The unit to query (e.g. "target", "party1", "pet", "player") | :;unit : The unit to query (e.g. "target", "party1", "pet", "player") | ||
:;distIndex : A value 1-4 | :;distIndex : A value 1-4: | ||
:1 = Inspect, 5.55 yards | :::1 = Inspect, 5.55 yards (as of Patch 1.12, this will double) | ||
:2 = Trade, 11.11 yards | :::2 = Trade, 11.11 yards | ||
:3 = Duel, 10 yards | :::3 = Duel, 10 yards | ||
:4 = Follow, ~28 yards | :::4 = Follow, ~28 yards | ||
---- | ---- | ||
;''Returns'' | ;''Returns'' | ||
:;canInteract : If in range to perform the action, 1 (true). Otherwise, nil (false). | |||
:;canInteract : | |||
---- | ---- | ||
| Line 38: | Line 33: | ||
else | else | ||
-- we're too far away to follow the target | -- we're too far away to follow the target | ||
end | end | ||