Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Register
Advertisement

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
Advertisement