- Messages
- 1,749
- Country

Hey Everyone,
I manged to get a sound for each direction you press your rudder pedals. But it constantly restarts the sound
as you move the pedals.
Can we make it force the sound file to start and finish with 5 seconds? No matter if you keep moving the pedals!!
But after 5 seconds it will start again if you are moving the pedals.
Any help would be greatly apreciated!
I wrote some of this and so it's very very messy, but works.
Thanks DG,
I manged to get a sound for each direction you press your rudder pedals. But it constantly restarts the sound
as you move the pedals.
Can we make it force the sound file to start and finish with 5 seconds? No matter if you keep moving the pedals!!
But after 5 seconds it will start again if you are moving the pedals.
Any help would be greatly apreciated!
I wrote some of this and so it's very very messy, but works.
Code:
<Gauge Name="Sound" Version="1.0">
<Element>
<Select>
<Value>
(P:ABSOLUTE TIME,seconds) (>L:SoundTime,bool) - 8 > &&
</Value>
</Select>
</Element>
<Element>
<Select>
<Value>
(L:SoundTime,bool) ! if{ (A:RUDDER DEFLECTION,grads) }
</Value>
</Select>
</Element>
<Element>
<Select>
<Value>
(L:SoundTime,bool) if{ (A:RUDDER DEFLECTION,grads) - 5 > if{ 1 (>L:XMLSND2,enum) } }
(L:SoundTime,bool) if{ (A:RUDDER DEFLECTION,grads) - -5 < if{ 1 (>L:XMLSND3,enum) } }
</Value>
</Select>
</Element>
</Gauge>
Thanks DG,
Last edited: