Jump to content
Sign in to follow this  
zelik

Hidden Selection Help

Recommended Posts

I'm not sure if i'm posting in the right place or not. I have read all of the forum posts regarding hidden selections and still can't get them to work. What I have done is found an existing model that is already textured. I opened the model in O2, made a selection and named it "label" and set its texture. I did this in all lods. I then went into uv editor and filtered to the texture that i'm using and changed the size of my uv to fit the texture. I also did this for all of my lods. Now my model.cfg looks like so...

class cfgModels {  
   class Default {  
       sectionsInherit="";  
       sections[]={""};  
   };  
   class flag_bag : Default {  
     sectionsInherit="";  
       sections[] = {"label"};  
   };  
};  

And this is my config.

class CfgPatches 
{ 
   class test 
   { 
       units[]={}; 
       weapons[]={}; 
       requiredVersion=0.1; 
       requiredAddons[]={}; 
   }; 
}; 
class CfgMagazines 
{ 
   class CA_Magazine; 
   class Bag_Base: CA_Magazine 
   { 
       scope=2; 
       count=1; 
       type=256; 
       displayName="RWD Flag"; 
       model="\test\models\flag_bag.p3d"; 
       picture="\test\textures\equip_flag_bag.paa"; 
       descriptionShort="A bag containing a flag"; 
       hiddenSelections[] = {"label"}; 
       hiddenSelectionsTextures[] = {"\test\textures\labels\label_rwd.paa"}; 
   }; 
   class Bag_1: Bag_Base 
   { 
       scope=2; 
       displayName="RWD Flag 1"; 
       descriptionShort="A bag containing a flag"; 
       hiddenSelectionsTextures[] = {"\test\textures\labels\1.paa"}; 
   }; 
};  

When I go into editor. I remove all items from my unit and give him only Bag_Base and Bag_1. Everything works great except, My model will not change textures. I don't know what I'm doing wrong. Any help would be highly appreciated. Thanks in advance.

-Z

Edited by zelik

Share this post


Link to post
Share on other sites

After looking at the cfgMagazines config reference, it seems that hidden selections are not supported for magazines. I may be wrong and I hope I am. This is a bummer...Any further info would be helpful. Thanks in advance.

-Z

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  

×