- Messages
- 10,163
- Country

Hey all,
Ready for another cool idea? (just say yes... )
What if you could select one of three different models of pilots in the same plane? You could have a male pilot, a female pilot, and a couple, male and female..
This would be selected by a clickable switch on the panel, or a popup.
You would have a default model pilot, lets say male, and the button would cause the male to hide, the female to appear, then again, the female hides, and the couple appears.
Now, the tricky part. How would you do this? You are hiding two and causing one to appear.
My thoughts are that you would have a;
* pilot_select_switch...................XML that brings up each pilot, one at a time
Then you would have the appearence nodes XML parts;
* pilot_select_01.................male
* pilot_select_02.................female
* pilot_select_03.................couple
I have a 'sky door' animation for the Kodiak that will 'hide' the entire rear hatch assembly via the click of a button, (for the skydiver option). The door by default 'appears' when you boot up the plane, the button hides it, then unhides it.
My question is; how on earth do you write the code for 3 different popups?
This could be a pretty cool feature as you could have this for aircraft interior variants;
* Seats...............default
* No Seats...........option one
* Cargo/No Seats......option two
* Seats with Passengers...........option three
Another use would be for say a WWII plane or jet fighter;
* No bombs loadout
* Missle racks
* Bomb racks
* Sidewinders and laser guided bombs
Here is the code for the sky door.
Any idea's?
Ready for another cool idea? (just say yes... )
What if you could select one of three different models of pilots in the same plane? You could have a male pilot, a female pilot, and a couple, male and female..
This would be selected by a clickable switch on the panel, or a popup.
You would have a default model pilot, lets say male, and the button would cause the male to hide, the female to appear, then again, the female hides, and the couple appears.
Now, the tricky part. How would you do this? You are hiding two and causing one to appear.
My thoughts are that you would have a;
* pilot_select_switch...................XML that brings up each pilot, one at a time
Then you would have the appearence nodes XML parts;
* pilot_select_01.................male
* pilot_select_02.................female
* pilot_select_03.................couple
I have a 'sky door' animation for the Kodiak that will 'hide' the entire rear hatch assembly via the click of a button, (for the skydiver option). The door by default 'appears' when you boot up the plane, the button hides it, then unhides it.
My question is; how on earth do you write the code for 3 different popups?
This could be a pretty cool feature as you could have this for aircraft interior variants;
* Seats...............default
* No Seats...........option one
* Cargo/No Seats......option two
* Seats with Passengers...........option three
Another use would be for say a WWII plane or jet fighter;
* No bombs loadout
* Missle racks
* Bomb racks
* Sidewinders and laser guided bombs
Here is the code for the sky door.
Any idea's?
Code:
<part>
<name>sky_door_switch</name>
<animation>
<parameter>
<code>(L:sky_door_visible, bool) 50 *</code>
<lag>400</lag>
</parameter>
</animation>
<mouserect>
<cursor>Hand</cursor>
<tooltip_text>Hide Cargo Door for Sky Diver Mode</tooltip_text>
<callback_code>(L:sky_door_visible, bool) ! (>L:sky_door_visible, bool)</callback_code>
</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>






