I want to control the position of the propeller with a switch.
when you press this switch, the propeller lever must decrease up to -25%
I wrote this code, but it doesn't work.
What is wrong?
when you press this switch, the propeller lever must decrease up to -25%
I wrote this code, but it doesn't work.
What is wrong?
Code:
<PartInfo>
<Name>00-NORD_Cde_Drapeau_G</Name>
<AnimLength>50</AnimLength>
<Animation>
<Parameter>
<Code>
(L:Cde_Drapeau_G,number) 50 *
</Code>
<Lag>400</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>Drapeau commande G</TooltipText>
<CallbackCode>
(L:Cde_Drapeau_G,number) ! (>L:Cde_Drapeau_G,number)
(L:Cde_Drapeau_G,number) 1 == if{ -25 (>A:GENERAL ENG PROPELLER LEVER POSITION:1,Percent) }
</CallbackCode>
</MouseRect>
</PartInfo>
Last edited: