- Messages
- 158
- Country

Thank you everyone. Plenty of suggestions there for me to try.
Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.
By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.



<PartInfo>
<Name>parked_part</name>
<Visibility>
<Parameter>
<Code>
(A:LIGHT BEACON, bool) 1 != (A:VELOCITY BODY Z, knots) 1 < and
if{ 1 } els{ 0 }
</Code>
</Parameter>
</Visibility>
</PartInfo>




The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
End tag 'name' does not match the start tag 'Name'. Error processing resource 'file:///E:/FSX_SDK/SDK/Environment Kit/Model...
<Name>parked_part</name>
-----------------------^
<PartInfo>
<Name>parked_part</Name>
<Visibility>
<Parameter>
<Code>
(A:LIGHT BEACON,bool) !
(A:VELOCITY BODY Z,knots) 1 <
and
</Code>
</Parameter>
</Visibility>
</PartInfo>


1. There are two ways to "reverse" the conditions. One is to script the opposite conditions for the two variables. The other is to use the if{ x } els{ y } scheme.1. Bill, what is the reverse of your code please, so that the temporary part displays only after the beacon light comes on, ie for a pilot sitting in the cockpit? Will the code line in the middle of the block also work for FS9?
2. What is the block of code, tied to the beacon light again, that will enable an animated canopy to remain open when the aircraft is parked, but close when the beacon light comes on please? That will obviously enable me to attach a visibility tag to the part, but will the same block of code also allow me to attach an animation tag, or is the latter not needed, or do I perhaps use a deafult door tag?
John
<PartInfo>
<Name>parked_part</Name>
<Visibility>
<Parameter>
<Code>
(A:LIGHT BEACON,bool)
(A:VELOCITY BODY Z,knots) 0 >
and
</Code>
</Parameter>
</Visibility>
</PartInfo>
<PartInfo>
<Name>unparked_part</Name>
<Visibility>
<Parameter>
<Code>
(A:LIGHT BEACON,bool) !
(A:VELOCITY BODY Z,knots) 1 <
and
if{ 0 } els{ 1 }
</Code>
</Parameter>
</Visibility>
</PartInfo>
<PartInfo>
<Name>T38_Canopy_AI</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>(A:LIGHT BEACON,bool) ! if{ 100 } els{ 0 }</Code>
<Lag>10</Lag>
</Parameter>
</Animation>
</PartInfo>





<Animation name="Canopy_AI" guid="929f3960-538c-409e-901c-02cc2b2dbda2" length="100" type="Sim" typeParam2="Canopy_AI" typeParam="AutoPlay" />


<part>
<name>unparked_part</name>
<visible_in_range>
<parameter>
<code>
(A:LIGHT BEACON,bool)
</code>
</parameter>
<minvalue>1</minvalue>
</visible_in_range>
</part>
<part>
<Name>CJ1recog_light_left_off</Name>
<visible_in_range>
<parameter>
<Code>(L:RecogLight_Left, number)</Code>
</parameter>
<minvalue>-1</minvalue>
<maxvalue>0</maxvalue>
</visible_in_range>
</part>
<part>
<Name>CJ1recog_light_right_on</Name>
<visible_in_range>
<parameter>
<Code>(L:RecogLight_Right, number)</Code>
</parameter>
<minvalue>1</minvalue>
</visible_in_range>
</part>


Thank you so much for your patience and for getting me to my goal. I will be making much use of the facility and I'm really grateful for your help.
