• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    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.

MSFS20 Visibility Code for Engine Off?

Messages
10,158
Country
us-arizona
Hey all,

Trying to get a Visibility Code in FSX format to function in MSFS.

This is what I have, but no worky-worky... :S


Code:
  <PartInfo>
    <Name>lhc_power_off_parts_visibility</Name>
    <Visibility>
      <Parameter>
        <Code>
          (A:SIM ON GROUND, bool) 1 ==
          (A:VELOCITY BODY Z, knots) 0 &lt; and
          (A:PROP RPM:1,RPM) 0 &lt; and
          if{ 1 } els{ 0 }
        </Code>
      </Parameter>
    </Visibility>
  </PartInfo>
 
Do they not work in MSFS?
No, only animations work with the old code, in the <ModelInfo> section.
You need a <ModelBehaviors> ... </ModelBehaviors> section and the following syntax:

Code:
<Component ID="lhc_power_off_parts_visibility" Node="name of the 3d part"
    <Visibility>
      <Parameter>
        <Code>
          (A:SIM ON GROUND, bool) 1 ==
          (A:VELOCITY BODY Z, knots) 0 &lt; and
          (A:PROP RPM:1,RPM) 0 &lt; and
          if{ 1 } els{ 0 }
        </Code>
      </Parameter>
    </Visibility>
  </Component>

Andras
 
If you want to use partinfo you'd need to create an animation and visibility combination and animate your part with at least a single keyframe. It's the same with mouse rectangles, the part needs an animation even if it is just zero.
 
Back
Top