Thread Tools Display Modes
10-19-09, 12:28 PM   #1
shaminah
A Murloc Raider
Join Date: May 2009
Posts: 4
check who arena enemy is targetting

Hello,

does anyone know if it is possible to detect who, when you're in arena for example, your enemy(-ies) is(are) targeting from your team at all times?
Checked the wow api but I haven't found anything relevant atm..
  Reply With Quote
10-19-09, 12:47 PM   #2
acapela
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 241
Originally Posted by shaminah View Post
Hello,

does anyone know if it is possible to detect who, when you're in arena for example, your enemy(-ies) is(are) targeting from your team at all times?
Checked the wow api but I haven't found anything relevant atm..
i believe arena unitids are active at all times. so, you can query arena unit names like "arena1target" through "arena5target" and get useful information. the whole Blizzard API should function here, from UnitExists() on down.

Code:
local name, _ = UnitName("arena1target")
if name then
    -- do something to add name as text to a targeting frame
end
should be about a zillion arena unit frame addons that do things like this already, if you want more extensive examples.
__________________
Retired author/maintainer of Aloft (the nameplate addon)
http://www.wowinterface.com/download...AloftBeta.html
-----
Zippy said it best: "All life is a BLUR of Republicans and Meat!"
  Reply With Quote
10-19-09, 02:37 PM   #3
shaminah
A Murloc Raider
Join Date: May 2009
Posts: 4
that is exactly what I was looking for =P thanks ^^
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » check who arena enemy is targetting


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off