oUF

97.2k Downloads

tags: realUnit always nil

freebaser opened this issue ยท 2 comments

commented

Tested at Sunsong Ranch.

oUF.Tags.Events["RealTest"] = "UNIT_NAME_UPDATE"

oUF.Tags.Methods["RealTest"] = function(unit, real)
    print(unit, real)
end

-- Returns
"vehicle nil" -- enter vehicle
"player nil" -- exit vehicle

commented

You need to set fontString.overrideUnit to true for it to pass real unit.

commented

Oh, right. I've used that before and completely forgot about it. Thanks.