Jump to content
Sign in to follow this  
Gudsawn

Config Replacement Help: Overwriting Master Class

Recommended Posts

I'm trying to overwrite the "RscMapControl" class which is proving a difficult task. I've already followed this guide but that assumes you are trying overwrite classes (e.g. BAF_Soldier_base_EP1) within a 'master' class (e.g. CfgVehicles). Here's what I have so far:

class CfgPatches {
class gdsn_OSMap {
	units[] = {};
	weapons[] = {};
	requiredVersion = 0.1;
	requiredAddons[] = {A3_UI_F, "A3_Functions_F", "A3_UIFonts_F", "A3_Data_F"};
};
};

class RscMapControl;	// External class reference

class RscMapControl : RscMapControl {
//values in here
};

This throws the expected error "Member class already defined".

How would I correctly overwrite/replace values within RscMapControl?

Thanks,

J

Edited by GDSN

Share this post


Link to post
Share on other sites

You can't inherit a base class like that and still use the same name, you have to redefine the entire class RscMapControl.

Share this post


Link to post
Share on other sites
class CfgPatches {
class gdsn_OSMap {
	units[] = {};
	weapons[] = {};
	requiredVersion = 0.1;
	requiredAddons[] = {"A3_UI_F"};
};
};

class RscMapControl {
//values in here
};

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  

×