- Messages
- 153
- Country

I am in the process of moving my model to MSFS. For the most part Im having good luck with moving code over that worked in P3D.
I am having a bit of trouble with this one though. Its a landing light switch. Up is for Landing Lights, center is off and down is for Wig Wags which I control with visibilities set to switch position. Anyways the switch is in the down position in MSFS when I want it centered for off (25) Does MSFS do things differently?
I am having a bit of trouble with this one though. Its a landing light switch. Up is for Landing Lights, center is off and down is for Wig Wags which I control with visibilities set to switch position. Anyways the switch is in the down position in MSFS when I want it centered for off (25) Does MSFS do things differently?
Code:
<Animation name="s2t_Switch_LL_PL" guid="6fad9cdc-3578-4204-9aa9-4bc753fd5887" length="50" type="Sim" typeParam2="s2t_Switch_LL_PL" typeParam="AutoPlay" />
<PartInfo>
<Name>s2t_Switch_LL_PL</Name>
<AnimLength>50</AnimLength>
<Animation>
<Parameter>
<Code>
25 (L:s2t_Pulse_Landing_switch,bool) 25 * +
</Code>
<Lag>300</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>(%((L:s2t_Pulse_Landing_switch,bool) -1 == )%{if}PULSE LIGHTS%{end}%((L:s2t_Pulse_Landing_switch,bool) 0 == )%{if}OFF%{end}%((L:s2t_Pulse_Landing_switch,bool) 1 == )%{if}LANDING LIGHTS%{end})</TooltipText>
<MouseFlags>WheelDown+WheelUp+LeftSingle+RightSingle</MouseFlags>
<CallbackCode>
(M:Event) 'LeftSingle' scmi ! (M:Event) 'WheelUp' scmi ! or if{ (L:s2t_Pulse_Landing_switch,bool) ++ 1 min (>L:s2t_Pulse_Landing_switch,bool) }
(M:Event) 'RightSingle' scmi ! (M:Event) 'WheelDown' scmi ! or if{ (L:s2t_Pulse_Landing_switch,bool) -- -1 max (>L:s2t_Pulse_Landing_switch,bool) }
</CallbackCode>
</MouseRect>
</PartInfo>