Also, maybe check out the bandage range checking technique. Could maybe also be used for another range to add to the drop down menu.
A good point, I'll take a look.
Ok here are the options I have so far...
CheckInteractDistance will tell me if any target is in sight and within either ~10 or ~28 yards.
Any one carrying a bandage can check for friendly targets within ~18 yards
Any one who trained "shoot" or "throw" can use IsSpellInRange to check for hostile targets between 8 and 30 yards. (However "attack" does not seem to work as a melee range check.)
Every class with an instant melee range attack can use IsSpellInRange for hostile targets within 5 yards.
Additional class specific abilities could be used for other range values but this gets tricky as talents can change the ranges and a character's level may then change the available options.
Overall I think it would be best to keep the display consistent between classes. It seems to me like giving each class different options would only lead to confusion. I'll mock up a little display using CheckInteractDistance and try to have it add in bandage range checking any time a player has any type of bandage in their bags. Hopefully those two or three data points are sufficient to position a raid.
I need to double check that CheckInteractDistance works as advertised but I think there are really several features a hypothetical range check should cover.
As mentioned in the original post it would be handy to know which raid members are within a certain distance of you. This should allow you to both avoid boss attacks and watch friendly abilities to stay within auras or aoe heals.
It makes sense to associate this with oR2 or BigWigs as it should primarily be used in a raid.
It looks like you can use CheckInteractDistance on hostile targets as well so I'd like to see range indicators on target frames or MT targets.
Finally we have a separate case for pvp fights where you probably want to know about as many hostile targets as possible in order to try to track an opposing team.
Given that the only distance information we can gather on a target is <= 10 yards, <= 11.11 yards, or <= 28 yards what kind of UI do you think would be helpful? Do you need to know who is close to you or only that someone is nearby? How much screen space can you afford to allocate to a distance indicator? How can I make it easy to read the discrete distance values available and have that information be useful?
I'll start playing around with some ideas but I'd like to hear other people's thoughts on how they would want this to be used.