- Messages
- 10,163
- Country

Hey Guys,
I am trying to make my rear cargo hatch on a plane to 'disappear' so that its a Sky Diver transport plane when you want it to be, (door hides and plane appears to look like a sky diver shuttle).
My problem is that I wish to have a 'physical' switch in the VC that will hide the door and for some reason I cant get it to work. So, it must be something small that I am missing, as I have tried quite a number of variations on the code to get this to work.
Presently the switch will animate, but the Sky Door system will not function per the switch/part.
Any idea's?
Sky Door code by Bill Leaming, Switch code by Stephen Barstow, modified by myself to try to get it to work.
Bill
I am trying to make my rear cargo hatch on a plane to 'disappear' so that its a Sky Diver transport plane when you want it to be, (door hides and plane appears to look like a sky diver shuttle).
My problem is that I wish to have a 'physical' switch in the VC that will hide the door and for some reason I cant get it to work. So, it must be something small that I am missing, as I have tried quite a number of variations on the code to get this to work.
Presently the switch will animate, but the Sky Door system will not function per the switch/part.
Any idea's?
Code:
<part>
<name>sky_door_switch</name>
<animation>
<parameter>
<sim>
<variable>(L:sky_door_visible, bool)</variable>
<units>bool</units>
<scale>50</scale>
</sim>
<lag>400</lag>
</parameter>
</animation>
<mouserect>
<cursor>Hand</cursor>
<tooltip_text>Hide Cargo Door for Sky Diver Mode</tooltip_text>
<event_id>(L:sky_door_visible, bool) ! (>L:sky_door_visible, bool)</event_id>
</mouserect>
</part>
<part>
<name>sky_door</name>
<visible_in_range>
<parameter>
<code>(L:sky_door_visible, bool)</code>
</parameter>
<minvalue>-1</minvalue>
<maxvalue>0</maxvalue>
</visible_in_range>
</part>
Sky Door code by Bill Leaming, Switch code by Stephen Barstow, modified by myself to try to get it to work.
Bill
