- Messages
- 176
- Country

Hello designer friends,
I'm trying to animate the lever_fuel_selector_wco. So far I've tried all possible combinations, but alas: no cigar! It won't switch (no animation) and it only goes from 'all' to 'both' and that's it. The animation should switch between the wingtank, the central tank and off.
The code it uses:
<!-- WCO = Wing/Center/Off -->
<PartInfo>
<Name>lever_fuel_selector_WCO</Name>
<AnimLength>50</AnimLength>
<Animation>
<Parameter>
<Code>2 2 0 0 2 0 0 0 2 2 0 0 1 1 1 2 2 2 2 2 0 21 (A:FUEL TANK SELECTOR:1, enum) case 25 *</Code>
<Lag>100</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<HelpID>HELPID_GAUGE_FUEL_SELECTOR</HelpID>
<TooltipID>TOOLTIPTEXT_FUEL_SELECTOR</TooltipID>
<MouseFlags>LeftSingle+LeftDrag+Wheel</MouseFlags>
<CallbackCode>
(M:Event) 'LeftSingle' scmp 0 ==
if{ (M:X) (>G:Var1) 2 2 0 0 2 0 0 0 2 2 0 0 1 1 1 2 2 2 2 2 0 21 (A:FUEL TANK SELECTOR:1, enum) (A:FUEL TANK SELECTOR:1, enum) case (>G:Var2) }
els{ (M:X) (G:Var1) - 40 / int (G:Var2) + 0 max 2 min s0 2 2 0 0 2 0 0 0 2 2 0 0 1 1 1 2 2 2 2 2 0 21 (A:FUEL TANK SELECTOR:1, enum) (A:FUEL TANK SELECTOR:1, enum) case !=
if{ l0 0 == if{ (>K:FUEL_SELECTOR_OFF) } l0 1 == if{ 6 (>K:FUEL_SELECTOR_SET) } l0 2 == if{ 16 (>K:FUEL_SELECTOR_SET) } }
</CallbackCode>
</MouseRect>
</PartInfo>
Can someone please help?
Cees
Edit: I got it working using the way the Extra 300 uses this switch. But that one uses a gauge! I want to be able to click the part directly in the VC, and not via a pop-up window. How do I do that?
Cees
I'm trying to animate the lever_fuel_selector_wco. So far I've tried all possible combinations, but alas: no cigar! It won't switch (no animation) and it only goes from 'all' to 'both' and that's it. The animation should switch between the wingtank, the central tank and off.
The code it uses:
<!-- WCO = Wing/Center/Off -->
<PartInfo>
<Name>lever_fuel_selector_WCO</Name>
<AnimLength>50</AnimLength>
<Animation>
<Parameter>
<Code>2 2 0 0 2 0 0 0 2 2 0 0 1 1 1 2 2 2 2 2 0 21 (A:FUEL TANK SELECTOR:1, enum) case 25 *</Code>
<Lag>100</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<HelpID>HELPID_GAUGE_FUEL_SELECTOR</HelpID>
<TooltipID>TOOLTIPTEXT_FUEL_SELECTOR</TooltipID>
<MouseFlags>LeftSingle+LeftDrag+Wheel</MouseFlags>
<CallbackCode>
(M:Event) 'LeftSingle' scmp 0 ==
if{ (M:X) (>G:Var1) 2 2 0 0 2 0 0 0 2 2 0 0 1 1 1 2 2 2 2 2 0 21 (A:FUEL TANK SELECTOR:1, enum) (A:FUEL TANK SELECTOR:1, enum) case (>G:Var2) }
els{ (M:X) (G:Var1) - 40 / int (G:Var2) + 0 max 2 min s0 2 2 0 0 2 0 0 0 2 2 0 0 1 1 1 2 2 2 2 2 0 21 (A:FUEL TANK SELECTOR:1, enum) (A:FUEL TANK SELECTOR:1, enum) case !=
if{ l0 0 == if{ (>K:FUEL_SELECTOR_OFF) } l0 1 == if{ 6 (>K:FUEL_SELECTOR_SET) } l0 2 == if{ 16 (>K:FUEL_SELECTOR_SET) } }
</CallbackCode>
</MouseRect>
</PartInfo>
Can someone please help?
Cees
Edit: I got it working using the way the Extra 300 uses this switch. But that one uses a gauge! I want to be able to click the part directly in the VC, and not via a pop-up window. How do I do that?
Cees
Last edited: