Jump to content
billyeatworld

How To Stop Function Running When Compiled In CfgFunctions?

Recommended Posts

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×