- Lua/XML Help
||08-22-14 01:07 PM
A simple range checker
I want to add something to my addon that only displays 0-100 yards range, the only thing i found in wow api was functions that return nil or 1. How do i make it so i just have a number on my screen that changes as you move closer and farther. thanks
If all you are looking for is an average range display then RangeDisplay
should do the trick.
If what you are looking for is a way to easily tell if your spells are in range then tullaRange
is a good option.
You may want to look over the Things addons/macros can't do
sticky thread. Addons cannot know the exact position of any units other than yourself and your party/raid members, so it's not possible to have an accurate display of the exact distance to arbitrary units. The best you can do is guess by checking whether spells with different ranges are in range, estimating based on how spells go in/out of range as you move, or by triangulating using data communicated by other players using the same addon.
The first addon Jeruku linked is probably your best bet.
|All times are GMT -6. The time now is 05:07 PM.
vBulletin © 2020, Jelsoft Enterprises Ltd
© 2004 - 2020 MMOUI