Jump to content
Sign in to follow this  
OberSchutze

Uniform playable class issue

Recommended Posts

I am not sure what I did wrong, I made a uniform and it creates a unit and when I load the unit I get a config bin error. The following is the code used to make the uniform and unit:

class CfgVehicles
{
class B_Soldier_base_F;

class 20thSFG_OCP_Soldier_F: B_Soldier_base_F
{
	_generalMacro = "B_Soldier_F";
	scope = 2;
	displayName = "Task Force 2031 OCP Soldier";
	nakedUniform = "U_BasicBody";
	uniformClass = "20thSFG_OCP_Soldier_F";
	hiddenSelections[] = {"Camo","Insignia"};
	hiddenSelectionsTextures[] = {"\20thSFG_Mod\data\textures\20thSFG_c_mcam.paa"};
	linkedItems[] = {"20thSFG_OCP_PlateCarrier1_rgr","20thSFG_fast_ocp","NVGoggles","ItemMap","ItemCompass","ItemWatch","ItemRadio"};
	respawnLinkedItems[] = {"20thSFG_OCP_PlateCarrier1_rgr","20thSFG_fast_ocp","NVGoggles","ItemMap","ItemCompass","ItemWatch","ItemRadio"};
};
};

class cfgWeapons
{
class Uniform_Base;
class UniformItem;

class 20thSFG_OCP_CombatUniform_mcam: Uniform_Base
{
	scope = 2;
	displayName = "Task Force 2031 OCP";
	picture = "\A3\characters_f\data\ui\icon_U_B_CombatUniform_mcam_ca.paa";
	model = "\A3\Characters_F\Common\Suitpacks\suitpack_blufor_diver";
	class ItemInfo: UniformItem
	{
		uniformModel = "-";
		uniformClass = "20thSFG_OCP_Soldier_F";
		containerClass = "Supply20";
		mass = 80;
	};
};
};

Share this post


Link to post
Share on other sites

class CfgVehicles
{
class B_Soldier_base_F;

class 20thSFG_OCP_Soldier_F: B_Soldier_base_F
{
	_generalMacro = "B_Soldier_F";
	scope = 2;
	displayName = "Task Force 2031 OCP Soldier";
	nakedUniform = "U_BasicBody";
	[color="#FF0000"]uniformClass = "20thSFG_OCP_CombatUniform_mcam";[/color]
	hiddenSelections[] = {"Camo","Insignia"};
	hiddenSelectionsTextures[] = {"\20thSFG_Mod\data\textures\20thSFG_c_mcam.paa"};
	linkedItems[] = {"20thSFG_OCP_PlateCarrier1_rgr","20thSFG_fast_ocp","NVGoggles","ItemMap","ItemCompass","ItemWatch","ItemRadio"};
	respawnLinkedItems[] = {"20thSFG_OCP_PlateCarrier1_rgr","20thSFG_fast_ocp","NVGoggles","ItemMap","ItemCompass","ItemWatch","ItemRadio"};
};
};

You need to link uniformClass to the matching item in cfgWeapons. :)

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  

×