Quantcast
WoWInterface - View Single Post - How to print when target is changed?
View Single Post
06-14-20, 03:08 PM   #3
sharp230
A Defias Bandit
Join Date: Jun 2020
Posts: 2
Originally Posted by Fizzlemizz View Post
If this is all the code then you're probably getting an error because of the missing bracket after the last "end" to close the SetScript call.

Lua Code:
  1. local UIConfig = CreateFrame("Frame")
  2. UIConfig:RegisterEvent("PLAYER_TARGET_CHANGED")
  3.  
  4. UIConfig:SetScript("OnEvent", function(self, event, ...)
  5.     local arg1 = ...
  6.     print("TEST")
  7. end)

Install BugGrabbler and BugSack to help you debug your code.
I'm an idiot. That fixed it!! Thank YOU!!
  Reply With Quote