I’m making a mod, and there are going to be quite a few hooks being used. I was wondering. Is there any slow-down if I were to hook everything in one lua file, and have the actual functions in another file? I’m pretty OCD about messy code, and I don’t like having hooks strewn across the whole script.
There shouldn’t be a problem with doing that at all, just keep the functions local and either include the hooking file at the end of the function file or include the function file at the start of the hooking one.