Jump to content
Sign in to follow this  
BennyBoy

hiddenselections & proxies

Recommended Posts

Does anyone know if it's possible to change the texture applied to a proxy via config only?

The reason I ask is I'm trying to use as few models as possible to create multiple variants of a vehicle.

Currently I can make desert and green/black variants by changing textures using hiddenselections and hiddenselectionstextures:

class ukf_fv510d : ukf_fv510 {
	displayName = "FV510 Warrior D";	
	hiddenSelections[] = {"camo1", "camo2", "camo3", "wrap2"};
	hiddenSelectionsTextures[] = {"ukf_warrior\data\wardes_co.paa", "ukf_warrior\data\cagedes_co.paa", "ukf_warrior\data\track_co.paa"};
};	
class ukf_fv510ch : ukf_fv510 {
	displayName = "FV510 Warrior Ch";
	damageResistance = 0.0679;
	hiddenSelections[] = {"camo1", "camo2", "camo3", "wrap2"};
	hiddenSelectionsTextures[] = {"ukf_warrior\data\wargb_co.paa", "ukf_warrior\data\cage_co.paa","ukf_warrior\data\track_co.paa", "ukf_warrior\data\chbm_co.paa"};
};
class ukf_fv510chd : ukf_fv510ch {
	displayName = "FV510 Warrior Ch D";
	damageResistance = 0.0679;	
	hiddenSelections[] = {"camo1", "camo2", "camo3", "wrap2"};
	hiddenSelectionsTextures[] = {"ukf_warrior\data\wardes_co.paa", "ukf_warrior\data\cagedes_co.paa", "ukf_warrior\data\track_co.paa","ukf_warrior\data\chbmdes_co.paa"};
};

'wrap2' is also a selection containing a proxy - within the proxy there are selections for any of the parts sharing the same texture names, and also one named 'wrap2' for the textures specific to the proxy only.

The base textures change just fine but the proxy continues to use the same texture.

Any ideas?

If it's not possible then I'll have to either create a model which includes the proxy parts, or a 2nd proxy with the correct texture applied.

No prizes for guessing what I'm configuring :D

Share this post


Link to post
Share on other sites

Swap selections dont work on proxies unfortunately :/

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  

×