WoW API: hooksecurefunc
Jump to navigation
Jump to search
Creates a secure 'post hook' for the named function. The hookfunc is invoked after the original function, and receives the same parameters. Return values from hookfunc are discarded. This is the only safe way to hook functions that execute protected functionality.
hooksecurefunc([table,] "functionName", hookfunc)
Takes
- table
- table which functionName exists on
- "functionName"
- the name of the function being hooked
- hookfunc
- the hook function
Returns
- Nothing
Details
- After hooksecurefunc() is used on a function, setfenv() throws an error when attempted on that function