Quantcast
WoWInterface - View Single Post - A simple range checker
View Single Post
08-22-14, 02:23 PM   #3
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
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.
__________________
Author/maintainer of Grid, PhanxChat, oUF_Phanx, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
  Reply With Quote