License from €75 Log in
DE EN FR ES IT CZ

How to unregister hook function?

This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials

  1. · 9 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")
  2. Working on a game?

    The free version covers up to 25 scenes per project. For more scenes and to sell your game, you need a license.

    See licenses Try it for free
  3. · 9 years ago
    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")

This thread is closed because nobody has replied for more than a year. Feel free to ask your question in a new thread.

New thread

Really delete this post?