Jump to content
Sign in to follow this  
Brickky

Uniform Invisible

Recommended Posts

I'm nearing completion of a faction for 40k Arma, but am running into an issue with the uniforms. When I placed down a unit with said uniform(s) it's fine, but the moment I placed a unit with a different uniform on and try changing said uniform to one of the other ones I'm making, the unit switches to wearing underwear/naked. 

Here's my base unit (if it matters)...

class Brood_Brother_Rifle_B: IC_CAD_inf_836_B
	{
		side=0;
		scope=2;
		scopeCurator=2;
		scopeArsenal=2;
		faction="GSC_BroodBrother_Base";
		displayName="Brood Brother Shocktrooper";
		uniformClass="BroodBrotherBase_Uniform";
		identityTypes[]=
		{
			"Genehead"
		};
		hiddenSelections[]=
		{
			"camo1",
			"camo"
		};
		hiddenSelectionsTextures[]=
		{
			"\Genestealer_Cult\Brood_Brother\Data\brood_pants_co.paa",
			"\Genestealer_Cult\Brood_Brother\Data\brood_brother_top_co.paa"
		};
		linkedItems[] = {BroodBrotherBase_Vest, BroodBrotherBase_Helmet, ItemMap, ItemCompass, ItemWatch, ItemRadio};				
		respawnLinkedItems[] = {BroodBrotherBase_Vest, BroodBrotherBase_Helmet, ItemMap, ItemCompass, ItemWatch, ItemRadio};
	};

 and here's the uniform...

class BroodBrotherBase_Uniform: IC_CAD_U_836_B
	{
		author="Brickky"
		displayName="[GSC] Brood Brother Fatigues w/Grieves";
		scope=2;
		scopeArsenal=2;
		scopeCurator=2;
		
		class ItemInfo: UniformItem
		{
			uniformModel="-";
			uniformClass="Brood_Brother_inf_B";
			containerClass="Supply90";
			mass=80;
		};
	};

Where exactly am I going wrong?

Share this post


Link to post
Share on other sites

I assume 

uniformClass="Brood_Brother_inf_B";

the "Brood_Brother_inf_B" unit is defined elsewhere in your config, as ideally this should read 

uniformclass="Brood_Brother_Rifle_B";

and be directly linked with a defined unit class.

 

Also, I'm surprised your linkedItems and respawnLinkedItems arrays aren't throwing errors-galore given that the classnames contained within aren't each enclosed in "quotation marks". I'm not sure if its "required" but for the sake of tidiness its something I would recommend...

		linkedItems[]={"BroodBrotherBase_Vest","BroodBrotherBase_Helmet","ItemMap","ItemCompass","ItemWatch","ItemRadio"};				
		respawnLinkedItems[]={"BroodBrotherBase_Vest","BroodBrotherBase_Helmet","ItemMap","ItemCompass","ItemWatch","ItemRadio"};

 

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  

×