Hi
I have been using the default Light_Landing_vis visibility condition in a converted model. Its code is;
I use it to have a spot light in the front wheel when the aircraft taxis into the RWY, BUT NOT WHILE TAXING. So far so good... but once the AI aircraft is airborne, I want it to disappear once the gear retracts, so I coded it as follows:
It doesn't work: the spot light shows up right after pushback (as if I was using Light_Taxi_vis), and does not disappear when the landing gear retracts.
Is the code wrong?
Thank you for your help.
Antonio
I have been using the default Light_Landing_vis visibility condition in a converted model. Its code is;
Code:
<PartInfo>
<Name>light_landing_vis</Name>
<Visibility>
<Parameter>
<Code>
(A:LIGHT LANDING,bool)
(A:ELECTRICAL MASTER BATTERY,bool)
and
</Code>
</Parameter>
</Visibility>
</PartInfo>
I use it to have a spot light in the front wheel when the aircraft taxis into the RWY, BUT NOT WHILE TAXING. So far so good... but once the AI aircraft is airborne, I want it to disappear once the gear retracts, so I coded it as follows:
Code:
<PartInfo>
<Name>light_landing_vis_II</Name>
<Visibility>
<Parameter>
<Code>
(A:LIGHT LANDING,bool)
(A:ELECTRICAL MASTER BATTERY,bool)
(A:GEAR TOTAL PCT EXTENDED,percent) 100
and and
</Code>
</Parameter>
</Visibility>
</PartInfo>
It doesn't work: the spot light shows up right after pushback (as if I was using Light_Taxi_vis), and does not disappear when the landing gear retracts.
Is the code wrong?
Thank you for your help.
Antonio




