• 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.

Synchronize, follow state ( help )

Messages
947
Country
indonesia
I have LVar for lever starter engine. everything work fine. then I realize something.
I search on forum if there any clue but I got none.

LVars by default is 0 in the initial sim start.
I want LVars can synchronize/follow last state from last state it saving, or when initial sim start.
i.e.
-I save my flight when in flight, so last position lever on flight position (position 3).
when I load the aircraft, lever on position off ( position 0)
- when change aircraft from previous aircraft that have engine run. my aircraft engine is running but lever starter on position Off.
how to make LVars stay on last position or follow state of engine run.
this my code
Code:
    <PartInfo>
        <Name>lever_eng1_ctrl_mv22b</Name>
        <AnimLength>100</AnimLength>
        <Animation>
            <Parameter>
                <Code> (L:Eng1_Ctrl, number) 25*  </Code>
                <Lag>400</Lag>
            </Parameter>
        </Animation>
        <MouseRect>
            <Cursor>Hand</Cursor>
            <MouseFlags>WheelUp+WheelDown</MouseFlags>
            <CallbackCode>
                (M:Event) 'WheelUp' scmp 0 == if{ (L:Eng1_Ctrl, number) ++ 3 min (&gt;L:Eng1_Ctrl, number) }
                (M:Event) 'WheelDown' scmp 0 == if{ (L:Eng1_Ctrl, number) -- 0 max (&gt;L:Eng1_Ctrl, number) }

                (L:Eng1_Ctrl, number) 0 == if{ 1 (&gt;K:MIXTURE1_LEAN) (A:GENERAL ENG STARTER:1,bool) 0 != if{ 1 (&gt;K:TOGGLE_STARTER1) } }
                (L:Eng1_Ctrl, number) 1 == if{ 1 (&gt;K:THROTTLE1_CUT) }
                (L:Eng1_Ctrl, number) 2 == if{ 1 (&gt;K:TOGGLE_STARTER1) }
                (L:Eng1_Ctrl, number) 3 == if{ 1 (&gt;K:MIXTURE1_RICH) }      
            </CallbackCode>
        </MouseRect>
    </PartInfo>

Maryadi
 
Doug Dawson's gauge is the easiest solution, but you need to make sure that you remove all the current values for the tracked L vars before you release your aircraft or at least put it into a "cold and dark" condition. Otherwise, you will have a lot of confused users that will start the Osprey in the condition that you left it with.
 
Back
Top