WoW:Hooking functions: Difference between revisions

m
mNo edit summary
Line 45: Line 45:
If you use [[Sea.util.hook]], then you're also able to remove the hook later with [[Sea.util.unhook]].  
If you use [[Sea.util.hook]], then you're also able to remove the hook later with [[Sea.util.unhook]].  


  Sea.util.unhook("OldFunctionName, "NewFunctionName);
  Sea.util.unhook("OldFunctionName, "NewFunctionName");


Using [[Sea.util.hook]] will take care of parameter passing, priorities, chains and making sure you can clean yourself up later.
Using [[Sea.util.hook]] will take care of parameter passing, priorities, chains and making sure you can clean yourself up later.
Anonymous user