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! |
By Team do you mean PvP Team, Group, Raid or both Group and Raid?
|
Either a PvE party or a PvE raid. I think I'm going to stick with the PLAYER_JOINED_TEAM solution, since I actually need to run that anyway - forgot about a planned feature that needs it :(
Sorry! |
PARTY_MEMBERS_CHANGED is the one you want.
It fires in all the situations you need (and a few you don't). |
Quote:
Hehe, yea - that's the one. There is no PLAYER_JOINED_TEAM. It actually worked out really well, and I finally got PugLax adding/removing people as they join/leave without requiring a full reset over the weekend. Thanks again for the help folks! |
All times are GMT -6. The time now is 09:24 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI