Custom visibility tags for warning ligths

#1
I have a few lights in the overhead that I want to light up, when the switch is flipped on.
My simple approach as a novice, is to use visibility conditions. The active bulb is slighty larger, has a brighter texture and a L_texture assigned to it and lits up.
  • Deice works well
  • Ignition lights stays on all the time. MASTER IGNITION SWITCH (No index for each engine?)
  • Engine0 deice switch lights up the engine1 light... Engine1 no light. I have checked the tags in GMAX and MCX (ENG ANTI ICE:index)
I guess there is a better and safer way to do this. Any tip or codesample is appreciated. I will add code for the "electrical circuit on", so the light is not on without power.

Code:
  <!-- Falcon20E visibility -->
 
  <PartInfo>
    <Name>light_ign_on</Name>
    <Visibility>
      <Parameter>
        <Code>
          (A:MASTER IGNITION SWITCH,bool)
        </Code>
      </Parameter>
    </Visibility>
  </PartInfo>
 
  <PartInfo>
    <Name>light_deice_on</Name>
    <Visibility>
      <Parameter>
        <Code>
          (A:STRUCTURAL DEICE SWITCH,bool)
        </Code>
      </Parameter>
    </Visibility>
  </PartInfo>

  <PartInfo>
    <Name>light_eng0_deice_on</Name>
    <Visibility>
      <Parameter>
        <Code>
          (A:ENG ANTI ICE:0,bool)
        </Code>
      </Parameter>
    </Visibility>
  </PartInfo>   

 <PartInfo>
    <Name>light_eng1_deice_on</Name>
    <Visibility>
      <Parameter>
        <Code>
          (A:ENG ANTI ICE:1,bool)
        </Code>
      </Parameter>
    </Visibility>
  </PartInfo>

  <!-- end Falcon20E visibility -->
Overhead.jpg
 

tgibson

Resource contributor
#2
I believe that gauge indexes are 1 2 3 4, not 0 1 2 3. So :0 is an invalid index, which means it reverts to engine 1, which is :1.
 
Top