Home   Help Search Login Register  

Author Topic: HiddenSelection not working on my Bridge  (Read 1366 times)

0 Members and 1 Guest are viewing this topic.

PRiME

  • Guest
HiddenSelection not working on my Bridge
« on: 27 Jun 2005, 06:32:10 »
I have made a bridge and wish to hide parts for different variations, for example on and off ramp etc.

I have labled the Ramps osal and osar, I have done this in 0.500/1.125/FireGeo/Geo/RoadWay/ViewGeo

My config uses this;
Code: [Select]
--cfgmodel--
   class All {};
   class Static:All {};
   class Building:Static {};
   class pontoonbridge:Building
      {
         sectionsInherit="";
         sections[]={"osar","osal"};
      };


--cfgvehicle---
class mybridge: Building
      {
      armor=1000;
      scope=public;

      hiddenSelections[]={"osal","osar"};

      model="\******\pontoonbridge.p3d";
      destrType=DestructBuilding;
      displayName="Pontoon Bridge (Centre)";
      vehicleClass= $STR******CLASSBUILDING;
      class eventhandlers {killed = "_this exec ""\******\scripts\killed.sqs""";};
   };

Basicly those sections won't go hidden in game, tried multiply ways, I can only assume Im missing something like perhaps buildings can't have hidden sections like this?

PRiME

  • Guest
Re:HiddenSelection not working on my Bridge
« Reply #1 on: 27 Jun 2005, 06:33:18 »
I should also mention that I have used the above method on a Hidden section of a machinegun with no issues.

Offline Pilot

  • Contributing Member
  • **
Re:HiddenSelection not working on my Bridge
« Reply #2 on: 27 Jun 2005, 16:35:00 »
Are you placing this bridge on the map through WRPEdit, WRPTool, or Visitor?  Or are you placing the bridge on the map through the mission editor?  If you are placing the map through one of the three programs listed above the eventhandlers won't work.  I am assuming the eventhandler calls a script which hides the selections.  If this is not the case, ignore my post ::).

-Student Pilot

Offline remcen

  • Contributing Member
  • **
  • a.k.a. hottentotten_mike
    • IM:UC
Re:HiddenSelection not working on my Bridge
« Reply #3 on: 28 Jun 2005, 00:06:39 »
plus hiddenselections don't seem to work at all in building subclasses. i tried it for walls with different writings on them - no chance. neither in wrptool nor in the mission editor
« Last Edit: 28 Jun 2005, 00:06:55 by remcen »
we're looking for members: IM:UC MOD

Offline oyman

  • Members
  • *
  • king of pings
Re:HiddenSelection not working on my Bridge
« Reply #4 on: 28 Jun 2005, 00:43:10 »
i think you need to use the flagcarrier class, for example
Code: [Select]
   class All {};
   class Static : All {};
   class Building : Static {};
   class Strategic : Building {};
   class FlagCarrier : Strategic {};
   class Danger : FlagCarrier {};
   class oyman_znacka1 : Danger

PRiME

  • Guest
Re:HiddenSelection not working on my Bridge
« Reply #5 on: 28 Jun 2005, 09:58:54 »
Ok I will definately give that a go, thanks for the tips.

DBR_ONIX

  • Guest
Re:HiddenSelection not working on my Bridge
« Reply #6 on: 28 Jun 2005, 14:50:32 »
Yeh, setobjecttexture doesn't work on static objects.
Hmm, I'll try flagcarrier for setobjecttexture stuff in future, ta oyman :)

For the bridges, I think you want to use hiddenselections, not setobjecttexture. HiddenSelections are selections hidden from config, setobjecttexture is hidden via scripts, which aren't really possible via placing the objects via WRPEdit/Tool. I think HiddenSelections work via WRPEdit, but I could well be wrong :P
- Ben