View Single Post
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