Dawn Ellis writes:
> Here's an example:
>
> <event n="3">
> <name>text3</name>
> <and>
> <condition>
> <less-than-equals>
> <property>/position/altitude-ft</property>
> <value>77900</value>
> </less-than-equals>
> <greater-than>
> <property>/position/altitude-ft</property>
> <value>77000</value>
> </greater-than>
> </condition>
> </and>
> <callback>show-text</callback>
> <parameter>Maneuver orbiter to burn attitude.</parameter>
> </event>
>
> Any suggestions?
Try
<event n="3">
<name>text3</name>
<condition>
<less-than-equals>
<property>/position/altitude-ft</property>
<value>77900</value>
</less-than-equals>
<greater-than>
<property>/position/altitude-ft</property>
<value>77000</value>
</greater-than>
</condition>
<callback>show-text</callback>
<parameter>Maneuver orbiter to burn attitude.</parameter>
</event>
You could also use
<condition>
<and>
<less-than-equals>
<property>/position/altitude-ft</property>
<value>77900</value>
</less-than-equals>
<greater-than>
<property>/position/altitude-ft</property>
<value>77000</value>
</greater-than>
</and>
</condition>
but the top-level <condition> is already an implicit 'and' group.
All the best,
David
--
David Megginson
[EMAIL PROTECTED]
_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel