#Trying to attach my fallback icon to a nameplate

1 messages · Page 1 of 1 (latest)

nocturne jay
#

im able to get the nameplate i want but can't figure out how to show the icon and attach it to it

function(allstates, event, unit)
    if event == "NAME_PLATE_UNIT_ADDED" and unit ~= nil then
        local role = UnitGroupRolesAssigned(unit)
        
        if role == "HEALER" then
            local name = UnitName(unit)
            local frame = C_NamePlate.GetNamePlateForUnit(unit)

            print(name)
        end
    end
    
    return true
end
snow anvil
#

you dont need custom code for this.

nocturne jay
#

under that trigger i can't check specialization

#

only class

snow anvil
#

Yeah cus nameplate doesn't have specialization lots of times

nocturne jay
#

right, so the code i have checks the role when in a group

#

i just need to figure out the code to attach my weakaura to that frame

snow anvil
#

Your aura needs the allstates unit variable to be set to the correct nameplate#
You'll need to use a TSU trigger to keep track of multiple states since you can have multiple nameplates at once.

#

!tus

#

!tsu

delicate magnetBOT
nocturne jay
#

right im just not well versed

#

and ive seen that doc