Thread Tools Display Modes
07-31-10, 04:43 PM   #1
Joevluls
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Jun 2009
Posts: 10
Party member targets

Forgive me if this is a simple question, but I'm probably overlooking something.

How would I go about getting the name of my party member's targets?
I've seen people using "party1target" for example, but I've not been able to get anything other than "nil" from that, from what I've tried.
  Reply With Quote
08-01-10, 12:55 AM   #2
Rilgamon
Premium Member
 
Rilgamon's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 822
It should work with UnitName()

http://www.wowwiki.com/API_UnitName

name = UnitName("party1target")

Edit: If it does not work for you perhaps you're not in a group ?
Eg Arena has its own unitids I think ... http://www.wowwiki.com/API_TYPE_UnitId
__________________
The cataclysm broke the world ... and the pandas could not fix it!
  Reply With Quote
08-01-10, 05:16 AM   #3
Joevluls
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Jun 2009
Posts: 10
Alright, thanks a bunch, that works.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Party member targets

Thread Tools
Display Modes

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