- Messages
- 947
- Country

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
Maryadi
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 (>L:Eng1_Ctrl, number) }
(M:Event) 'WheelDown' scmp 0 == if{ (L:Eng1_Ctrl, number) -- 0 max (>L:Eng1_Ctrl, number) }
(L:Eng1_Ctrl, number) 0 == if{ 1 (>K:MIXTURE1_LEAN) (A:GENERAL ENG STARTER:1,bool) 0 != if{ 1 (>K:TOGGLE_STARTER1) } }
(L:Eng1_Ctrl, number) 1 == if{ 1 (>K:THROTTLE1_CUT) }
(L:Eng1_Ctrl, number) 2 == if{ 1 (>K:TOGGLE_STARTER1) }
(L:Eng1_Ctrl, number) 3 == if{ 1 (>K:MIXTURE1_RICH) }
</CallbackCode>
</MouseRect>
</PartInfo>
Maryadi

