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

MSFS Doors Visibility Code and Execution of Canopy_Open or EXIT_Open for Exterior Sounds

Messages
10
Country
unitedkingdom
Hi all

I have a simple script that shows or hides my doors and it works well.

Ideally I would like either a A:CANOPY_OPEN or A:EXIT_OPEN variable to triggered when the doors are not visible as this is the only way I know currently to trigger open door noises whilst in the cockpit?

Is it possible to amend this code so that the Canopy open or exit open is triggered when doors are hidden? Any help much appreciated - and if anybody wants a simple visibility code for doors - this works well!

" <Component ID="ALL_Doors">
<Component ID="ALL_Doors" Node="ALL_Doors">
<UseTemplate Name="ASOBO_GT_Visibility">
<VISIBILITY_CODE>(L: DOORS_VIS, Bool) !</VISIBILITY_CODE>
</UseTemplate>
</Component>
<Component ID="DOORS_TOGGLE" Node="DOORS_TOGGLE">
<UseTemplate Name="ASOBO_GT_Interaction_LeftSingle_Code">
<LEFT_SINGLE_CODE>(L: DOORS_VIS, Bool) ! (&gt;L: DOORS_VIS, Bool)</LEFT_SINGLE_CODE>
</UseTemplate>
</Component>
</Component>"
 
Messages
19
Country
germany
Unfortunately I am not an expert and struggle myself adding sound to a canopy animation for my plane.
But I think you dont necessarily need that "A:CANOPY_OPEN" variable but you can also use the "L: DOORS_VIS, Bool" local variable
to add exterior sounds.

I think in the sound.xml file you add a " LocalVar=" instead of the "SimVar=" to trigger the sound.

For my plane I only managed to change the exterior sound volume once the canopy opens. This is the code I added to the sound.xml file

Code:
 <Sound WwiseEvent="Combustion" FadeOutType="2" FadeOutTime="10" RPMMin="750" WwiseData="true" EngineIndex="1" >
    <WwiseRTPC LocalVar="DOORS_OPEN_ALL" Units="PERCENT" Index="1" RTPCName="SIMVAR_GENERAL_ENG_COMBUSTION_SOUND_PERCENT"/>
      </Sound>

So maybe you could also add sound by using your local variable "DOORS_VIS" to add sound.

But then again I also struggle adding some custom sound to the canopy animation.
 
Top