Jump to content
Sign in to follow this  
Richards.D

Hidden Selection Custom Issue

Recommended Posts

Hello gentlemen (+ Ladies):

I've been working on a custom set to shoot a small video, and I need one key feature that does not currently work. I have a TV mounted on the wall which I want to configure as a hidden selection texture so I can switch what it displays. I followed as much on tutorials as I could, but when I attempt to add anything at all, it does not work.

Model Photo: (In Game)

https://dl.dropboxusercontent.com/u/23389642/arma2oa%202013-04-04%2022-44-38-27.png (1879 kB)

Now, I textured that TV screen to always show a background image, but I cannot get the thing to display any other textures. I named the hidden selection "screen".

Oxygen 2 Model Photo:

https://dl.dropboxusercontent.com/u/23389642/ScreenHunter_56%20May.%2010%2016.35.jpg

CONFIG.CPP

class CfgPatches 
{ 
   class dar_objects 
   { 
       units[] = {"DAR_TV"}; 
       weapons[] = {}; 
       requiredVersion = 0.1; 
       requiredAddons[] = {"CAData"}; 
   }; 
}; 

class CfgVehicleClasses 
{ 
   class dar_structures 
   { 
       displayName = "DAR Structures"; 
   }; 
}; 

class CfgVehicles 
{ 
   class House; 
   class DAR_TV: House//Wall 
   { 
       scope = 2; 
       displayName = "GOB TV Set"; 
       vehicleClass = "dar_structures"; 
       model = "\dar_tvset\dar_tvset.p3d";
       cost = 1000; 
       armor = 5000; 
       destrType = "DestructNo"; 
	hiddenSelections[] = {"screen"};
   }; 
};  

Thank you in advance...

Regards,

Share this post


Link to post
Share on other sites

You'll need a MODEL.CFG

Your name "screen" needs to go in the sections[]=

Its position in the array determines is its section 0 or 1 or 2 etc when setting textures

Share this post


Link to post
Share on other sites

Right made a Model.CFG, but to no avail!

Here is the Model.CFG:

class CfgModels
{
  class House; //Declare base class.

  class class DAR_TV: House
  {
     sectionsInherit = "House"; 
     sections[] =
     {
        "screen"
     };
     skeletonName = "DAR_TV"; 

  };
};

Share this post


Link to post
Share on other sites

You should read up a little more about MODEL.CFG's

class class DAR_TV: House

does not match with the name of your model

model = "\dar_tvset\dar_tvset.p3d";

The class MUST = model file name.

Share this post


Link to post
Share on other sites

Right.. I've changed the Model.CFG as such but I still cannot apply any texture to that face. Do I need to possibly do something with UV Mapping for that face only?

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  

×