PDA

View Full Version : PartyTargetManager


neogia
12-15-2004, 03:24 PM
Ok, basically, I'm a warlock and I need a CC addon which will tell me info about what my party members are targetting.

My problem is, I need a function like AssistUnit("party1"); but instead of making you target their target, I just want a function that returns an object of type target... Example:

Roflcopter has no target, so the indicator is gray.
Roflcopter targets something changing the indicator to yellow.

I can do this using the UNIT_FOCUS flag, but I cannot for the life of me find a function that will give me the target without making the UI target it by default. Any help here?

sarf
12-16-2004, 07:34 AM
Only solution that I can think of is to have each player put in an AddOn which sends you their target.

Sarf
---
How can you be in two places at once when you're not anywhere at all?

Anonymous
12-16-2004, 02:13 PM
Ooh, good idea... would I have to do that as a chat message? How can you distinguish between enemies with the same name? I'll root around. I'd only be using this in my guild so it wouldn't be hard to have everybody have the addon.

sarf
12-16-2004, 02:39 PM
Ooh, good idea... would I have to do that as a chat message?
Yes. Cosmos provides a bit of code for this - check out how Cosmos knows how to display the Cosmos button on party members.

How can you distinguish between enemies with the same name?
Not possible, AFAIK.

I'll root around. I'd only be using this in my guild so it wouldn't be hard to have everybody have the addon.
Good luck!

Sarf
---
From the halls of Montezuma to the shores of Tripoli, we are all tools of the Conspiracy...