Script to check how many people are inside my party/raid?
Title! Need to make an if statement in my addon that swaps some stuff around.
|
|
Thanks!
So here's what I got: local z=GetNumGroupMembers() if z <=5 then CompactUnitFrameProfiles_ActivateRaidProfile("Primary") else CompactUnitFrameProfiles_ActivateRaidProfile("Mucho") end I placed this into an addon and it doesn't seem to work - do I need it in a loop or? |
Not sure why you need custom coding like this, you can set profiles in the raid setup window to handle group sizes, etc.
However, you could try something like this.. Code:
local eHandler = CreateFrame("Frame") |
Need it because blizzard method doesn't work, raid profiles don't get swapped automatically based on how many people are inside the party/raid.
I'll give it a try later on and report if it works, ty! |
All times are GMT -6. The time now is 02:53 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI