9/7/2023 0 Comments Wow addon all the thingsIf I swap out mouseover for player it works fine (but doesn't actually give me the data I need).Īlso, if I swap out and hook-into OnMouseDown it also works, but then I can't actually interrupt the attack.Īny insight on why it's not working or how to fix it would be appreciated. The code I have should be working (from what I can tell) - but it's not. Local reaction = UnitReaction("mouseover", "player") or 10 ĭEFAULT_CHAT_FRAME:AddMessage("Stopped Attack on: ".mouseoverName) ĭEFAULT_CHAT_FRAME:AddMessage(mouseoverName." is friendly! ".reaction) Local mouseoverName = UnitName("mouseover") or "Unknown" WorldFrame:HookScript("OnMouseUp", function(self, button) I'm just trying to write a very basic mod that cancels attacking with the right mouse button. ![]() I last created Mods back before Cataclysm.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |