View Single Post
08-22-22, 07:48 AM   #1
nyxxir
A Defias Bandit
Join Date: Aug 2022
Posts: 2
Why OnTooltipSetUnit callback is not working?

Lua Code:
  1. GameTooltip:HookScript("OnTooltipSetUnit", TooltipCallback)
  2.  
  3. function TooltipCallback(tooltip, ...)
  4.     local unitName, unitId = tooltip:GetUnit()
  5.     GameTooltip:AddLine(unitName)
  6. end

The new line is not added. What is wrong? And what arguments OnTooltipSetUnit callback should have? I've a lot of different options ('self', 'self, tooltip', 'self, ...', 'tooltip, ...' and so on)...
  Reply With Quote