Jump to content
Sign in to follow this  
neodammerung

Automatically enable modules

Recommended Posts

Hi there

I recently asked if it was possible to force enable a specific module on coop missions without having to edit them all to add the module.

NouberNou gave me a big help

I tried to do the same thing to enable modules for 3 different mods :

- ACE : Enable spare tyres in vehicules module

- RHS CargoSystem module

without success for any of them

I'v messed around with the example he gave me but couldn't do anything.

for example :

ACE : Enable spare tyres in vehicules module :

class CfgPatches {
class test_sys_ace_tyres {
	units[] = {};
	weapons[] = {};
	requiredVersion = 0.01;
	requiredAddons[] = { "ace_sys_repair" };
};
};

class Extended_PostInit_EventHandlers {
class test_sys_ace_tyres	{
	init = "ace_sys_repair_tyres = true;";
};
};

or

RHS CargoSystem module :

class CfgPatches {
class test_rhs_cargosystem {
	units[] = {};
	weapons[] = {};
	requiredVersion = 0.01;
	requiredAddons[] = { "rhs_cargosystem" };
};
};

class Extended_PostInit_EventHandlers {
class test_rhs_cargosystem	{
	init = "rhs_cargosystem_enable = true;";
};
};

That's as far as I have gone (so really not far...)

I guess I'm completely wrong...

Edited by Neodammerung

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
Sign in to follow this  

×