• 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.

How to?

Messages
19
Country
us-texas
How would i write code for the following example?

the object is visible if vertical speed is greater than 0?

I am not smart enough to decode the SDK information.

Thanks!
 
XML script "code" or real C code?

Which sim, FS9 or FSX?

You really need to be very specific with your questions here... :D

As asked, I could give at least four, mutually exclusive answers! :yikes:
 
that dosent work for some reason. The object disappears and never shows back up again. Also, it is for vertical speed. But that is an easy fix. Any other suggestions would be greatly appriciated.
 
Code:
    <PartInfo>
        <Name>ShowPart</Name>
        <Visibility>
            <Parameter>
                <Code>
                    (A:VERTICAL SPEED, ft/min) 0 &gt; if{ 1 ] els{ 0 }
                </Code>
            </Parameter>
        </Visibility>
    </PartInfo>
 
I finally got it working with this code
(A:Vertical Speed, ft/min) 100 >= if{1}

How could I tell the object to be visible if VS were greater than 100 and less than 100?

would it look like this?
((A:Vertical Speed, ft/min) 100 >= if{1})((A:Vertical Speed, ft/min) -100 <= if{1})

Thanks again!
 
That doesn't make sense. The speed can't be greater than 100 AND less than 100. Even if you meant less than -100 (like in the pseudo code you wrote) it doesn't make sense.

If you mean "How could I tell the object to be visible if VS were greater than 100 OR less than -100?" we might be able to answer that with:

Code:
(A:Vertical Speed, ft/min) 100 >=
(A:Vertical Speed, ft/min) -100 <=
or
if{ 1 }
els{ 0 }
 
Last edited:
sorry about that. I forgot to put the - before the 100. I guess I should proof read my posts! Thanks though. I will try that out!
 
Reading before posting is probably a good idea. It also keeps you out of trouble with the apostrophe-man. :D

Just joking...

Good luck!
Vitus
 
Back
Top