Thread Tools Display Modes
Prev Previous Post   Next Post Next
11-21-10, 11:57 AM   #1
Virance
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 12
Best way to identify that player joined a team?

I'm looking through the events and I don't really see anything like "PLAYER_JOINED_TEAM" or something along those lines.

My initial reaction is to just keep a bool called inTeam or something, and every time PARTY_MEMBERS_CHANGED gets called update that variable (and if it changes, do whatever I need to do when the player first joins a team).

Any thoughts? Is there a better way that doesn't involve hooking a function that fires so frequently?

Thanks in advance!
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Best way to identify that player joined a team?

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