Login / Registrieren
DE EN FR ES IT CZ
Zurück Nach oben

How to unregister hook function?

  • #1, by dionous 8 years ago Zitieren
    Hi all,

    Does anyone know how to unregister  a hook function?

    In my case i want to unregister the following:

    registerHookFunction("getActionText", "FrenchActionText")
  • #2, by afrlme 8 years ago Zitieren
    you can only unregister mainLoop functions.

    Just replace the function to kill the action text function.

    function FrenchActionText()
    
    end


    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")