How to unregister hook function?

  • #1, by dionousSaturday, 24. February 2018, 14:47 6 years ago
    Hi all,

    Does anyone know how to unregister  a hook function?

    In my case i want to unregister the following:

    registerHookFunction("getActionText", "FrenchActionText")

    Forum Fan

    246 Posts

  • #2, by afrlmeSaturday, 24. February 2018, 22:01 6 years ago
    you can only unregister mainLoop functions.

    Just replace the function to kill the action text function.

    function FrenchActionText()

    Or wrap whatever is inside of it in an if query. if condition/value is x.

    also quick note: the function doesn't have to be located in the same script containing the line that registers it.

    anyway, unregister for mainLoop functions would be like this...
    unregisterEventHandler("mainLoop", "example")


    7283 Posts