Jump to content
jakkob4682

how to init functions from more than one parent folder?

Recommended Posts

I have a three parent folders that contain a handful of functions, what's considered best practices for initializing each category of functions?  i.e. I have an ambient functions folder that contains a few functions, I have a support folder with a few functions, and I have another folder that has misc functions.  How do I go about initializing these? Should I put them all in one primary folder and then preprocess them from them that way? or preprocess separately?  

 

 

Share this post


Link to post
Share on other sites

Hey man, Merry Christmas!

I don't know how you do it right now, but you can do that in CfgFunctions of the description.ext of your mission. You have to create a folder called "functions" in your main mission folder. You can then add subfolders into the functions folder, e.g. I have a folder called "init" in it.

You then have to create a corresponding structure in the description.ext, for example:

class CfgFunctions
{
	class OS // My function tag, so all functions will beginn with OS_fnc_
	{
		class init // Subfolder in the functions folder
		{
			class A10_loiterLoop {};
			class init_virtualArsenal {};
		};
    };
};


Hope that helps you out. Cheers!

  • Like 1

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

×