- Messages
- 231
- Country

I am working on an F4u-1 Corsair for FS9 in gmax. I addition to the normal cowl flaps, this aircraft also has intercooler flaps and oil cooler flaps. All of which need to deploy and retract, controlled from seperate VC controls incrementely and independenly. I have the additional animations working using cowl flaps 1, and cowl flaps 2 event ids to control the flaps incrementaly.
My problem lies in the fact to get the flaps to function I have to add engine entries to the aircraft.cfg file to get the animations to play. Is there a way to fool the .cfg file into thinking the added engines are not there so I can continue to use the cowl flap 1 and 2 event ids to move the flaps incrementaly? Failing that, is there a way to write a part name that will play it's keyframes incrementaly and still be triggered from the VC controller? Or Are there 2 other incremental event Ids I can use to do the job with out having to add engines.
Here is an example of the VC controller code I am using:
And here is the cowl flap entry:
Any help would be welcomed.
Carl
My problem lies in the fact to get the flaps to function I have to add engine entries to the aircraft.cfg file to get the animations to play. Is there a way to fool the .cfg file into thinking the added engines are not there so I can continue to use the cowl flap 1 and 2 event ids to move the flaps incrementaly? Failing that, is there a way to write a part name that will play it's keyframes incrementaly and still be triggered from the VC controller? Or Are there 2 other incremental event Ids I can use to do the job with out having to add engines.
Here is an example of the VC controller code I am using:
Code:
<part>
<name>oil_switch_spring</name>
<animlength>100</animlength>
<animation>
<parameter>
<code>50 (L:oil_switch_spring,enum) 50 * +</code>
<Lag>100</Lag>
</parameter>
</animation>
<mouserect>
<cursor>Hand</cursor>
<tooltip_text>Left_Click-open/Right_Click-close</tooltip_text>
<mouse_flags>LeftSingle+Leftrelease+RightSingle+RightRelease</mouse_flags>
<callback_code>
(M:Event) 'LeftSingle' scmp 0 ==
if{ 1 (>L:oil_switch_spring, enum) (>K:INC_COWL_FLAPS3) }
(M:Event) 'LeftRelease' scmp 0 ==
if{ 0 (>L:oil_switch_spring, enum) }
(M:Event) 'RightSingle' scmp 0 ==
if{ -1 (>L:oil_switch_spring, enum) (>K:DEC_COWL_FLAPS3) }
(M:Event) 'RightRelease' scmp 0 ==
if{ 0 (>L:oil_switch_spring, enum) }
</callback_code>
</mouserect>
</part>
And here is the cowl flap entry:
Code:
<part>
<name>lever_cowl_flaps2</name>
<copy>lever_cowl_flaps</copy>
<animation>
<parameter>
<sim>
<variable>RECIP ENG COWL FLAP POSITION:3</variable>
</sim>
</parameter>
</animation>
<mouserect>
<tooltip_id>TOOLTIPTEXT_ENG3_COWL_FLAPS_PERCENT</tooltip_id>
<callback_jump_dragging>
<ymovement>
<event_id_inc>INC_COWL_FLAPS3</event_id_inc>
<event_id_dec>DEC_COWL_FLAPS3</event_id_dec>
</ymovement>
</callback_jump_dragging>
</mouserect>
</part>
Any help would be welcomed.
Carl



