• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

animation of lever_fuel_selector_wco

Messages
176
Country
netherlands
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) (&gt;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 (&gt;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{ (&gt;K:FUEL_SELECTOR_OFF) } l0 1 == if{ 6 (&gt;K:FUEL_SELECTOR_SET) } l0 2 == if{ 16 (&gt;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:
Back
Top