I have a landing light that is supposed to display when landing light is turned on, with gear extended, and once the gear retracts beyond 90%, automatically turns off. I borrowed working code for the FS9 version of the same model and attempted to covert it for use in XtoMDL. The compiled model shows the landing light on/off with lights selected accordingly, however it doesn't turn off once gear is retracted as it should. I've checked examples of FS9 vs. FSX xml coding and managed to get some items working, but this one eludes me. Any assistance is appreciated.
Code:
<PartInfo>
<Name>attachpt_landing_1</Name>
<Animation>
<Parameter>
<Code>
(A:LIGHT LANDING,number) (A:GEAR CENTER POSITION,PERCENT) 90 <
if{ (A:LIGHT LANDING,number) 0 > if{ (>K:LANDING_GEAR_TOGGLE) } }
</Code>
</Parameter>
</Animation>
</PartInfo>


