• 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 Meaning of LowerBound and UpperBound?

Messages
10,088
Country
us-arizona
Hey all,

I am just learning the sound system in MSFS.
What is the difference between UpperBound and LowerBound?

From the SDK, which doesnt seem to tell me anything;
They can either be played when the watched value changes, or when the value reaches a specific range, which is defined by a LowerBound attribute and an UpperBound attribute (which default to -∞ and +∞) in the <Range /> sub-element.
I am doing a sound using a Local Var and wish the sound to fire on the backwards swing of the animation (when the door is closing) at the 90% 'closed' point (just before it hits and is closed. KF's are 0-100, so it would fire at KF-7ish... Would I use UpperBound="0.9" ?
20220829_100421.jpg

 
Messages
10,088
Country
us-arizona
What I am doing is inserting the sound to make the Ka-Chunk 'closing sound' of the door.
 
Messages
10,088
Country
us-arizona
Quite a bit of experimenting with this and noting that it doesnt seem to work.
Also, playing sounds Forward and Backward also has no control of the sound playing on the up-swing or the down-swing.
From what I also found, I cannot run 2 sounds on the same Local Var which really makes it difficult. As in impossible. I hope I am just doing something wrong and it might eventually work.
 
Messages
10,088
Country
us-arizona
I can get two sounds playing on top of each other with a single Local Var. Now if only I could figure out how LowerBound and UpperBound work and if I can slide over the secondary sound to work when the part is animating in the other direction, 'Backward setting'.

<Sound Wwisedata="false" WwiseEvent="custom_sound_03" FileName="door_opening_lh" LocalVar="DOOR_LH" Continuous="false" Direction="Forward" Units="PERCENT" ViewPoint="Inside" Index="0"> <Range LowerBound="1.0"/> </Sound> <Sound Wwisedata="false" WwiseEvent="custom_sound_04" FileName="door_closing_lh" LocalVar="DOOR_LH" Continuous="false" Direction="Backward" Units="PERCENT" ViewPoint="Inside" Index="1"> <Range LowerBound="1.0" UpperBound="100.0"/> </Sound>
 
Top