• 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 Intake animation

Messages
28
Country
newzealand
I am making an aircraft that has an auxiliary intake door that opens progressively below Mach 0.55. I have managed to get this animation to work fine without much hassle but now I want to add the extra parameter of the engines needing to be running for the door to be open, my animation doesn't seem to work with the extra additions to my code, can anyone spot the issue?

"rintake" is the one that I'm testing with the engine needing to be running code, "lintake" is the working door closing with speed code.

Code:
<!-- Custom intake animations -->
        <Component ID="GT">
            <UseTemplate Name="ASOBO_GT_Anim_Code">
                <ANIM_NAME>rintake</ANIM_NAME>
                <ANIM_CODE>
                        (A:ENG COMBUSTION:3, bool) 1 == if{ (A:AIRSPEED MACH, mach) 100 * 55 - abs }
                         els{ 0 }
                </ANIM_CODE>
                <ANIM_LENGTH>55</ANIM_LENGTH>
                <ANIM_LAG>50</ANIM_LAG>
            </UseTemplate>
            <UseTemplate Name="ASOBO_GT_Anim_Code">
                <ANIM_NAME>lintake</ANIM_NAME>
                <ANIM_CODE>(A:AIRSPEED MACH, mach) 100 * 55 - abs</ANIM_CODE>
                <ANIM_LENGTH>55</ANIM_LENGTH>
            </UseTemplate>
        </Component>
 
I have sorted it, was indexing the wrong engine.....

For future reference, if anyone ever needs to do something similar here is my code. It now references engine RPM instead as I wanted it to open during startup, Also <ANIM_LAG> added to smooth out the open-close transition on startup/shutdown.

Code:
<UseTemplate Name="ASOBO_GT_Anim_Code">
    <ANIM_NAME>rintake</ANIM_NAME>
    <ANIM_CODE>
            (A:GENERAL ENG RPM:2, rpm) 1000 >= if{ (A:AIRSPEED MACH, mach) 100 * 55 - abs }
            els{ 0 }
    </ANIM_CODE>
    <ANIM_LENGTH>55</ANIM_LENGTH>
    <ANIM_LAG>80</ANIM_LAG>
</UseTemplate>
 
Turns out I need a hand again. The r_intake code was working fine yesterday, but has since broken, can anyone see any issues with it? l_intake was my attempt to fix but also isn't working....

Code:
        <!-- Custom intake animations -->
        <Component ID="GT">
            <UseTemplate Name="ASOBO_GT_Anim_Code">
                <ANIM_NAME>r_intake</ANIM_NAME>
                <ANIM_CODE>
                        (A:GENERAL ENG RPM:2, rpm) 1000 >= (&lt;A:AIRSPEED MACH, mach) 0.54 and if{ (A:AIRSPEED MACH, mach) 100 * 55 - abs } els{ 0 }
                </ANIM_CODE>
                <ANIM_LENGTH>55</ANIM_LENGTH>
                <ANIM_LAG>80</ANIM_LAG>
            </UseTemplate>
            <UseTemplate Name="ASOBO_GT_Anim_Code">
                <ANIM_NAME>l_intake</ANIM_NAME>
                <ANIM_CODE>
                        (&gt;A:GENERAL ENG RPM:1, rpm) 1000 (&lt;A:AIRSPEED MACH, mach) 0.54 and if{ (A:AIRSPEED MACH, mach) 100 * 55 - abs } els{ 0 }
                </ANIM_CODE>
                <ANIM_LENGTH>55</ANIM_LENGTH>
                <ANIM_LAG>80</ANIM_LAG>
            </UseTemplate>
        </Component>
 
Back
Top