View Single Post
07-26-16, 06:22 PM   #2
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
I think you want to do:

Lua Code:
  1. hooksecurefunc(SomeDopeyFrameName, "OnUpdate", function(self, elapsed)
  2.     print(self:GetName(), elapsed)
  3. end)

hooksecurefunc is designed to catch secure but mainly global functions, so thats why it might not be able to handle local ones.