Function to distinguish party from raid?
Hi,
I've scoured the WoW API for a function that can return whether the player is in a party or a raid but can't seem to find one that does the job. Is there a function specifically designated for this or another way to check this? Thanks! |
UnitInRaid("player"), IsInRaid()
UnitInParty, IsInGroup |
Thanks heaps, I don't know why I couldn't find those.
|
Just a note that IsInGroup() returns true for both party and raid.
A typical check is Code:
if IsInRaid() then while GetNumSubGroupMembers() always returns the size of the narrowest group the player belongs to (Group2 members if player is in G2 in a raid, party members if in a party) |
Great tip, thanks a a lot.
|
This is probably trivial and superfluous information now but here is also some kind of truth table to compare against
Lua Code:
|
All times are GMT -6. The time now is 11:23 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI