- Messages
- 95
- Country

Hi guys,
Can anybody help me sort out this code for an altitude alerter for my plane ?
When the knob is turned (actually it doesn't actually rotate in the sim) the drums turn extreeemly slowly.. so they need to roll much quicker.
I'm not very well up on xml, just a little tinkering about and see if it works in P3D, so that hasn't worked after much nail biting
Also, how would I go about creating the alerts... 1000 feet to go to selected alt and 300 feet deviation from same. It's all in made in 3D for P3D
Any help appreciated, here's the code I have :
Skip
Can anybody help me sort out this code for an altitude alerter for my plane ?
When the knob is turned (actually it doesn't actually rotate in the sim) the drums turn extreeemly slowly.. so they need to roll much quicker.
I'm not very well up on xml, just a little tinkering about and see if it works in P3D, so that hasn't worked after much nail biting
Also, how would I go about creating the alerts... 1000 feet to go to selected alt and 300 feet deviation from same. It's all in made in 3D for P3D
Any help appreciated, here's the code I have :
Skip
Code:
<PartInfo>
<Name>J200_ALTALERTER_knob</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>
(L:Altitude Set, feet) 100 /
</Code>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>Altitude Alert Set Knob</TooltipText>
<MouseFlags>WheelUp+WheelDown</MouseFlags>
<CallbackCode>
(M:Event) 'WheelUp' scmi 0 ==
if{ (L:Altitude Set, feet) ++ 0 max (>L:Altitude Set, feet) }
(M:Event) 'WheelDown' scmi 0 ==
if{ (L:Altitude Set, feet) -- 50000 min (>L:Altitude Set, feet) }
</CallbackCode>
</MouseRect>
</PartInfo>
<PartInfo>
<Name>J200_ALTALERTER_drum100</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>(L:Altitude Set, feet) 10/ 10 / 100 % flr</Code>
</Parameter>
</Animation>
</PartInfo>
<PartInfo>
<Name>J200_ALTALERTER_drum1000</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>(L:Altitude Set, feet) 10/ 100 / 100 % flr</Code>
</Parameter>
</Animation>
</PartInfo>
<PartInfo>
<Name>J200_ALTALERTER_drum10000</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>(L:Altitude Set, feet, feet) 10/ 1000 / 100 % flr</Code>
</Parameter>
</Animation>
</PartInfo>

