WoW:Hooking functions: Difference between revisions

m
no edit summary
mNo edit summary
Line 46: Line 46:
To hook "object:method()" to your own function "myfunction()", you'd hook it in the following manner:
To hook "object:method()" to your own function "myfunction()", you'd hook it in the following manner:


  object.method() = myfunction;
  object.method = myfunction;


== An Easier Way to Hook a Function? ==
== An Easier Way to Hook a Function? ==
Anonymous user