Jump to content


- - - - -

XML question


  • Please log in to reply
No replies to this topic

#1 ClubCX

ClubCX

    Private Pilot - VFR

  • Members
  • PipPipPip
  • 134 posts
  • Location:/

Posted 05 December 2004 - 12:17 PM

I'm trying to set up smoke for some of my AI aircraft, and an XML gauge seems the best way.  I'd like for it to enable the logo lights (aka smoke) when engine rpm is above 90%, the aircraft is below 10,000 feet, and when the other lights aren't on (so the effect is only visible during the day).  I don't understand XML, but so far the file looks like this:

<Gauge Name="AISMOKE">
  <Element>
    <Select>
      <Value> 
        (A:ENG1 N1 RPM,percent) 90 &gt; (A:INDICATED ALTITUDE,feet) 10000 &lt; &amp;&amp; if{ (&gt;K:LIGHT LOGO,bool) 1 } els{ (&gt;K:TOGGLE_LOGO_LIGHTS) }
      </Value>
    </Select>
  </Element>
</Gauge>

How is it supposed to look?