P3D v3 On Ground Variable

I am trying to make two parts appear at different times, one when the aircraft is on the ground, the other when airbourne.

I have tried for ON ground and it works, but how do I do the opposite and get something that is OFF ground


<PartInfo>
<Name>Pilot On Ground</Name>
<Visibility>
<Parameter>
<Code>
(A:SIM ON GROUND, bool)
</Code>
</Parameter>
</Visibility>
</PartInfo>
 
Last edited:
This ?
Code:
<PartInfo>
    <Name>ground_on</Name>
    <Visibility>
       <Parameter>
    <Code>
        (A:SIM ON GROUND, bool) 1 == if{ 1 } els{ 0 }
    </Code>
       </Parameter>
    </Visibility>
   </PartInfo>

<PartInfo>
    <Name>ground_off</Name>
    <Visibility>
       <Parameter>
    <Code>
        (A:SIM ON GROUND, bool) 0 == if{ 1 } els{ 0 }
    </Code>
       </Parameter>
    </Visibility>
   </PartInfo>
id add at least 1 other condition so it doesn't show if aircraft crashes or bounces on the deck ;)
Code:
 <PartInfo>
    <Name>ground_stuff</Name>
    <Visibility>
       <Parameter>
    <Code>
        (A:SIM ON GROUND, bool) 1 == (A:BRAKE PARKING POSITION, percent) 90 &gt; and if{ (L:ground_stuff, number) 1 == } if{ 1 } els{ 0 }
    </Code>
       </Parameter>
    </Visibility>
   </PartInfo>
 
Top