Originally Posted by Resike
I think you want to do:
Lua Code:
hooksecurefunc(SomeDopeyFrameName, "OnUpdate", function(self, elapsed) print(self:GetName(), elapsed) end)
hooksecurefunc is designed to catch secure but mainly global functions, so thats why it might not be able to handle local funcitons.
|
I can use the original form to hook a function being used for an OnEvent script without problem. I'm pretty sure it was usable for OnUpdate pre 7.x.
I wasn't sure about the local thing.