View Single Post
10-26-18, 12:38 PM   #16
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,240
Originally Posted by Xrystal View Post
However, I always thought the player was party1, but I could be mistaken.
AFAIK, player is never in partyN, but player will be in raidN. partyN is 1-4. If you are trying to find out how many total units are in your party, including the player, use GetNumGroupMembers() + 1, or just GetNumGroupMembers() by itself if you are in a raid.

Once you determine you are in a party and use GNGM() + 1, use UnitIsUnit(unit, "player") to return the actual unit.
  Reply With Quote