License from €75
DE EN FR ES IT CZ

Multiple registerHookFunctions ?

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,

    Would it be possible to have multiple registerHookFunctions for example one for setTextPosition and one for getActionText at the same time?
  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. Forum readers get the Indie Bundle 15 % off with the code FORUM15: €84.15 instead of €99, valid until 31 Dec 2026.

    Get 15 % off Try it for free
  3. · 9 years ago
    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.
  4. · 9 years ago
    hu? but didnt he want to know if its possible to have a registerHookFunction for two different hooks? 
  5. · 9 years ago
    Then I misunderstood, that's possible. But only one for each.
  6. · 9 years ago
    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?)
  7. · 9 years ago
    To remove a hook you would  basicly do it like this:
    registerHookFunction("setTextPosition","")
  8. · 9 years ago
    Great thanks!

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?