I have a bunch of Qs which I'd appreciate your help with. Keeping them in one thread for cleanliness.
1. If there is a procedure called procedure_1 in Script_1.ssl, and there is another procedure also called procedure_1 in another script file called Script_2.ssl, will they interfere with each other? What actually happens?
2. If a procedure is registered to a given gamehook in one script file, and another procedure is registered to the same gamehook in another script file, what happens? I suppose when the hook gets "hooked" then a procedure should be called and executed. but if two different procedures in two different scripts are registered to the same hook...?
In Fo2Tweaks for example register_hook_proc(HOOK_COMBATDAMAGE, procedure_name) is called once in gl_g_knockback.ssl and once in gl_g_damage_mod.ssl. Although the procedure name is different.
I need to understand this so i don't make incompatible code with other people's code, in case of merging.
1. If there is a procedure called procedure_1 in Script_1.ssl, and there is another procedure also called procedure_1 in another script file called Script_2.ssl, will they interfere with each other? What actually happens?
2. If a procedure is registered to a given gamehook in one script file, and another procedure is registered to the same gamehook in another script file, what happens? I suppose when the hook gets "hooked" then a procedure should be called and executed. but if two different procedures in two different scripts are registered to the same hook...?
In Fo2Tweaks for example register_hook_proc(HOOK_COMBATDAMAGE, procedure_name) is called once in gl_g_knockback.ssl and once in gl_g_damage_mod.ssl. Although the procedure name is different.
I need to understand this so i don't make incompatible code with other people's code, in case of merging.
Last edited: