I'm trying to incorporate a vertical speed parameter in an XML script to trigger an AI aircraft animation only when the model is level, IOW not climbing or descending.
To do this I have paired an altitude range parameter with another variable, a vertical speed parameter.
Here is the code:
<code>
20000 24000 (A:INDICATED ALTITUDE, feet) rng (A:VERTICAL SPEED, feet per minute) 100 < * * 100
</code>
The idea being that if the AI model's altitude range is between 20,000 and 24,000 ft. and the model's vertical speed is 100 fpm and less, the result would be:
1*1*100=100 which is the key framed animation number.
However the animation is triggering as soon as the model reaches 20,000 ft. regardless of the vertical speed parameter.
It's as if the code is completely ignoring the second A variable all together.
Does anyone know if "feet pre minute" is the correct unit to use for VERTICAL SPEED in an XML script?
To do this I have paired an altitude range parameter with another variable, a vertical speed parameter.
Here is the code:
<code>
20000 24000 (A:INDICATED ALTITUDE, feet) rng (A:VERTICAL SPEED, feet per minute) 100 < * * 100
</code>
The idea being that if the AI model's altitude range is between 20,000 and 24,000 ft. and the model's vertical speed is 100 fpm and less, the result would be:
1*1*100=100 which is the key framed animation number.
However the animation is triggering as soon as the model reaches 20,000 ft. regardless of the vertical speed parameter.
It's as if the code is completely ignoring the second A variable all together.
Does anyone know if "feet pre minute" is the correct unit to use for VERTICAL SPEED in an XML script?

