Engine
Licenses
Forum
Blog
Downloads
Wiki
Reference
Login
Login
EN
EN - Englisch
DE - German
FR - French
ES - Spanish
IT - Italian
CZ - Czech
Multiple registerHookFunctions ?
1
#1, by
dionous
Tuesday, 06. March 2018, 07:48
7 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?
dionous
Forum Fan
248 Posts
#2, by
SimonS
Tuesday, 06. March 2018, 11:25
7 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.
SimonS
Thread Captain
1593 Posts
#3, by
sebastian
Tuesday, 06. March 2018, 11:43
7 years ago
hu? but didnt he want to know if its possible to have a
registerHookFunction for two different hooks?
sebastian
Thread Captain
2346 Posts
#4, by
SimonS
Tuesday, 06. March 2018, 11:44
7 years ago
Then I misunderstood, that's possible. But only one for each.
SimonS
Thread Captain
1593 Posts
#5, by
dionous
Tuesday, 06. March 2018, 11:50
7 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?)
dionous
Forum Fan
248 Posts
#6, by
SimonS
Tuesday, 06. March 2018, 11:58
7 years ago
To remove a hook you would basicly do it like this:
registerHookFunction("setTextPosition","")
SimonS
Thread Captain
1593 Posts
#7, by
dionous
Tuesday, 06. March 2018, 15:41
7 years ago
Great thanks!
dionous
Forum Fan
248 Posts
1
Visionaire Studio UG (haftungsbeschränkt)
Brüderweg 252, 57074 Siegen, Germany
Tel. +49(0)271-2503232
team@visionaire-studio.net
General Terms and Conditons
·
Imprint
Privacy