DE EN FR ES IT CZ
Back Back to top

Multiple registerHookFunctions ?

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

  • #1, by dionous 9 years ago Quote
    Hi all,

    Would it be possible to have multiple registerHookFunctions for example one for setTextPosition and one for getActionText at the same time?
  • New to Visionaire Studio?

    Create point and click adventures without coding. The free version covers up to 25 scenes per project. For more scenes or to earn money with your game, you need a license.

    See the Indie Bundle Try it for free
  • #2, by SimonS 9 years ago Quote
    No, it's not possible. How should the engine decide which value to use? You would need to build your own hook system on top of one hook.
  • #3, by sebastian 9 years ago Quote
    hu? but didnt he want to know if its possible to have a registerHookFunction for two different hooks? 
  • #4, by SimonS 9 years ago Quote
    Then I misunderstood, that's possible. But only one for each.
  • #5, by dionous 9 years ago Quote
    Thanks all -  noted, yes basically i would like to use the registerHookFunction two or mores times, each with different hooks.

    So i guess there is no need to unregister a hook? (btw is it possible to do this, just like the event hook?)
  • #6, by SimonS 9 years ago Quote
    To remove a hook you would  basicly do it like this:
    registerHookFunction("setTextPosition","")
  • #7, by dionous 9 years ago Quote
    Great thanks!