WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Party member targets (https://www.wowinterface.com/forums/showthread.php?t=34283)

Joevluls 07-31-10 04:43 PM

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.

Rilgamon 08-01-10 12:55 AM

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

Joevluls 08-01-10 05:16 AM

Alright, thanks a bunch, that works.


All times are GMT -6. The time now is 10:03 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI