View Single Post
07-30-10, 01:34 AM   #2
Krahg
A Deviate Faerie Dragon
 
Krahg's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 19
Arrow

Your question is a little unclear, if this doesn't cover it, could you be a bit more specific?

I looked for a pre-made API for this, but didn't find one so this should do it.

Code:
function GetSubGroupID()
	if not UnitInRaid("PLAYER") then return
	for i = 1 , GetNumRaidMembers() do
		name, rank, subgroup, level, class, fileName, zone, online, isDead, role, isML = GetRaidRosterInfo(i)
		if ( name == UnitName("PLAYER") ) then
			return subgroup
		end
	end
end

Last edited by Krahg : 07-30-10 at 01:40 AM.
  Reply With Quote