Multiple registerHookFunctions ?

  • #1, by atrusTuesday, 06. March, 07:48 7 months ago
    Hi all,

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

    Forum Fan

    237 Posts


  • #2, by SimonSTuesday, 06. March, 11:25 7 months 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.

    Thread Captain

    1102 Posts

  • #3, by sebastianTuesday, 06. March, 11:43 7 months ago
    hu? but didnt he want to know if its possible to have a registerHookFunction for two different hooks? 

    Thread Captain

    2205 Posts

  • #4, by SimonSTuesday, 06. March, 11:44 7 months ago
    Then I misunderstood, that's possible. But only one for each.

    Thread Captain

    1102 Posts

  • #5, by atrusTuesday, 06. March, 11:50 7 months 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?)

    Forum Fan

    237 Posts

  • #6, by SimonSTuesday, 06. March, 11:58 7 months ago
    To remove a hook you would  basicly do it like this:
    registerHookFunction("setTextPosition","")
    1

    Thread Captain

    1102 Posts

  • #7, by atrusTuesday, 06. March, 15:41 7 months ago
    Great thanks!

    Forum Fan

    237 Posts

Write post