billyeatworld 2 Posted December 21, 2020 Stupid question probably guys, but how do I stop a function being called when compiled in CFGFunctions? EDIT: I think I'm just misunderstanding how preinit = 1 works? Share this post Link to post Share on other sites
pierremgi 4906 Posted December 22, 2020 Your function can include a condition for running or not a code, or even exiting... The preInit (or postInit) makes it run automatically. That can be useless in your case. On the other hand, if you're trying to "discard" a function (from BI or a mod), just forget. They are loaded and initialized at start. The good question is: how/when/ what for, they will run. Share this post Link to post Share on other sites