- Messages
- 106
- Country

Hi,
i have a very big problem. I have a two-way engine-switch (Engine_Start) and his lock (lockl).
the switch may only be moved when the lock is open and the lock may go only if the switch is minimum on 1.
I`ve tried many different types of solutions, but all was wrong way.
I hope you can help me.
Here are the codes
two-way-switch
Lock
i have a very big problem. I have a two-way engine-switch (Engine_Start) and his lock (lockl).
the switch may only be moved when the lock is open and the lock may go only if the switch is minimum on 1.
I`ve tried many different types of solutions, but all was wrong way.
I hope you can help me.
Here are the codes
two-way-switch
Code:
<PartInfo>
<Name>Switch_Idle1</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>
(L:Engine_Start,bool) 50 *
</Code>
<Lag>200</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<HelpID>HELPID_GAUGE_SWITCH_IDLE1</HelpID>
<TooltipText>ENGINE_SWITCH_1_MODE_MOUSE_L/R</TooltipText>
<MouseFlags>LeftSingle+RightSingle</MouseFlags>
<CallbackCode>
(M:Event) 'RightSingle' scmp 0 == if{ (L:Engine_Start,bool) -- 0 max (>L:Engine_Start,bool) } (M:Event) 'LeftSingle' scmp 0 == if{ (L:Engine_Start,bool) ++ 2 min (>L:Engine_Start,bool) } } 1 (>L:push_1,enum)
</CallbackCode>
</MouseRect>
</PartInfo>
Lock
Code:
<Name>switch_idle_riegel_l</Name>
<AnimLength>50</AnimLength>
<Animation>
<Parameter>
<Code>
(L:lockl,bool) 50 *
</Code>
<Lag>400</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<HelpID>HELPID_CAUTION MASTER</HelpID>
<TooltipText>IDLE LOCK 1</TooltipText>
<MouseFlags>LeftSingle+RightSingle</MouseFlags>
<CallbackCode>
(L:lockl,bool) ! (>L:lockl,bool) 1 (>L:Button_press,enum)
</CallbackCode>
</MouseRect>
</PartInfo>


