Home   Help Search Login Register  

Author Topic: Hidden Selections  (Read 1024 times)

0 Members and 1 Guest are viewing this topic.

Unnamed

  • Guest
Hidden Selections
« on: 09 Jul 2004, 06:09:15 »
Hidden Selections

Hi,

I'm trying to workout how hidden selections are defined, I have read through Fab's tutorial:

http://fab.ofp.free.fr/Tutorials/Hidden_Selections.htm

According to this any named selection can be included as a hidden selection. So I tried to hide the selection "leftwheel" on Martins excellent DC3 as a test. He already has cfgModels defined:

Code: [Select]
class CfgModels
{
   class mtydc3Pilot
   {
      sectionsInherit=Man;
      sections[] ={"helmet"};
   };
   class MTYDC3
   {
      sectionsInherit="Vehicle";
      sections[]={"vrtule staticka","vrtule blur","leftwheel"};
   };
};

And in the main config section:

Code: [Select]
hiddenselections[] = {"leftwheel","vrtule blur"};
But no matter what I add to the sections array, it has no effect. The only selection I can hide is "vrtule blur". Just for reference I actualy want to hide the walkable floor in his DC3, as this prevents the plane from returning it's height via getpos.

Now according to Fabs tutorial the cfgModels section should be something like:

Code: [Select]
class CfgModels
{
class Default{};
class Vehicle: Default{};
class Tank: Vehicle{};
class Sturmtiger: Tank{
sections[]={"Armor_Plates","Ring"};
};
};

So I tried changing the DC3's cfgModels to:

Code: [Select]
class CfgModels
{
class Default{};
class Vehicle: Default{};
class MTYDC3: Vehicle
   {
   sections[]={"leftwheel"};
   };
};

Again this does not help any and as before I can only hide "vrtule blur".

Any ideas would be much appreciated.

Cheers

DBR_ONIX

  • Guest
Re:Hidden Selections
« Reply #1 on: 16 Jul 2004, 16:21:00 »
I'm not that sure, but the
      sectionsInherit="Vehicle";
      sections[]={"vrtule staticka","vrtule blur","leftwheel"};

Won't the override each other..?
Try removing the inherit bit, see if that helps..

Hmm, have you tried with ::
class CfgModels
{
class Default{};
class Vehicle: Default{};
class MTYDC3: Vehicle
   {
   sections[]={"leftwheel"};
   };
};

And
hiddenselections[] = {"leftwheel","vrtule blur"};

In the config at once?
(Cant be sure from your post)

Stupid idea, but double check the selections are spelt right ::)
I've screwed a few thigns up (Like muzzle flashes) before, when I misspelled the selection for it  :P

Gd luck  :-\
- Ben