Sorting unitid in raid
Hello, i would like to sort the unitids of a raid frame ("SecureGroupHeaderTemplate") with a condition :
if UnitIsUnit(raidx, "player") then
put raidx first in the button list...
end
the probleme is, UnitIsUnit is not in the "RestrictedEnvironment.lua" so i cannot update my raid frame in combat.
plus, i don't want to have twice (player and raidx) in the raid frame.
any suggestion is welcome.
|