gc8 981 Posted May 31, 2019 Hi I have a question, how do execute a single file from addon? Or do all the functions have to be in CfgFunctions? thx! Share this post Link to post Share on other sites
Dedmen 2721 Posted May 31, 2019 I assume by file you mean script. https://community.bistudio.com/wiki/execVM Share this post Link to post Share on other sites
gc8 981 Posted May 31, 2019 1 hour ago, Dedmen said: I assume by file you mean script. https://community.bistudio.com/wiki/execVM Yes Basically I'm looking for the right starting point for my scripts... other than declaring every function in CfgFunctions Share this post Link to post Share on other sites
Dedmen 2721 Posted May 31, 2019 1 hour ago, gc8 said: other than declaring every function in CfgFunctions But that's what you are supposed to do if you want a well made script addon. You could also just define one init function in CfgFunctions and let that take care of calling all your other stuff. Share this post Link to post Share on other sites
gc8 981 Posted May 31, 2019 8 minutes ago, Dedmen said: You could also just define one init function in CfgFunctions and let that take care of calling all your other stuff. That's what I ended up doing. Adding just one function and calling execVM for all the rest script files. Probably not best practice but I'm too lazy to make my mission into dozen functions Share this post Link to post Share on other sites