#Player & Target Portraits

16 messages · Page 1 of 1 (latest)

nimble verge
#
    local unit = "player"
    local exists = UnitExists(unit)
    
    if exists then
        SetPortraitToTexture(aura_env.region.texture)
        SetPortraitTexture(aura_env.region.texture, unit)
        return true
    end
end

Is causing LUA errors and not showing the portrait. What would be the updated custom trigger for it?

uncut palm
#

!bugsack

vast pewterBOT
#

If you are having errors we need a copy of the entire error's text to be able to help.
See this message #pins message for details on getting detailed Lua errors

nimble verge
#

@uncut palm I believe i fixed it by adding ", unit" on line 6. However is there an event I can add that will trigger when I close the WA options? The portrait doesn't show up unless I /reload

#

Also, would it be possible to zoom out the camera from the portrait?

uncut palm
#

If you're using code to adjust the texture on the portrait then you have to use to code to adjust the portrait. idk how you would do that though.

#

alternatively you could make a Model type aura and put the unit name into the spot where you put the texture and check the Is Unit box or whatever it's called im not looking at it RN

nimble verge
#

The Model would be 3D or is there a 2D option?

uncut palm
#

It would be 3D

#

Not sure if there is a 2D option

#

there might be one on there because that's a default option in wow

nimble verge
#

Yeah I don't see one

#

This is what I'm trying to achieve, just "better"

uncut palm
#

You might have to choose the texture aura type.

nimble verge
#

On the Model?

uncut palm
#

ahh looks like 2D isn't an option in WA