- Messages
- 945
- Country
Is there any way to stop the sound from playing using the visibility tag, just as the visibility tag can be used to show and hide visual effect?
I have a model (a rocket) to which I attached a sound effect controller which in turn plays a looping rocket rumble sound. I have also tagged this effect with a visibility tag:
Just for verification, I have placed a VISUAL fx using the same visibility tag.
Now, through some SimConnect magic , I can control the visibility of this effect - I can turn it on and off within my DLL app. By default, visibility switch is off and both visual fx and sound fx are invisible and inaudible. When I flip it on, the visible fx turns on AND sound fx starts playing. When I flip the visibility switch off, visual fx is gone, but the sound fx continues playing, without any possibility of stopping.
From the visible fx's proper behaviour I can see that my logic is sound... so, is there any way to stop the sound from playing using the visibility tag, just as it can be used to show and hide visual effect?
I have a model (a rocket) to which I attached a sound effect controller which in turn plays a looping rocket rumble sound. I have also tagged this effect with a visibility tag:
Code:
SXML = <?xml version="1.0" encoding="ISO-8859-1" ?> <FSMakeMdlData version="9.0"> <Attachpoint name="attachpt_rocketRumbleSnd_01"> <AttachedObject> <Effect effectName="Cntrl_rocket5" effectParams=""/> </AttachedObject> </Attachpoint> <Visibility name="rocket_engine_0"> </Visibility> </FSMakeMdlData>
Just for verification, I have placed a VISUAL fx using the same visibility tag.
Now, through some SimConnect magic , I can control the visibility of this effect - I can turn it on and off within my DLL app. By default, visibility switch is off and both visual fx and sound fx are invisible and inaudible. When I flip it on, the visible fx turns on AND sound fx starts playing. When I flip the visibility switch off, visual fx is gone, but the sound fx continues playing, without any possibility of stopping.
From the visible fx's proper behaviour I can see that my logic is sound... so, is there any way to stop the sound from playing using the visibility tag, just as it can be used to show and hide visual effect?