- Messages
- 10,163
- Country

Hey guys,
I have a problem.
I need a 'ding' to occur, one time, when decelerating through 85 knots to let the pilot know the plane is entering the 'yellow' airspeed zone.
I have tried a 'plethra' of combinations of code. This one dings once, but only through the accelleration zone. When decelling back through it, it will not ding.
Perhaps a ding timer? Like, if the ding has occurred, it will clear itself after say 3 or 5 seconds? (Power out will need to come back on after a bit).
but... I dont know how to write timers that well yet, so I have no idea how that would be written.
Any advice? :/
<Element>
<Select>
<Value>
(L:AVEsound_played77,bool) 0 ==
(A:VELOCITY BODY Z,knot) 85 <
(A:SIM ON GROUND,bool) 0 ==
and and
if{
1 (>L:XMLSND78,enum)
1 (>L:AVEsound_played77,bool)
}
(L:AVEsound_played77,bool) 1 ==
(A:VELOCITY BODY Z,knot) 85 >
(A:SIM ON GROUND,bool) 1 ==
and and
if{
3 (>L:AVEsound_played77,bool)
</Value>
</Select>
</Element>
Bill of the giant eyebrow developer race...
I have a problem.
I need a 'ding' to occur, one time, when decelerating through 85 knots to let the pilot know the plane is entering the 'yellow' airspeed zone.
I have tried a 'plethra' of combinations of code. This one dings once, but only through the accelleration zone. When decelling back through it, it will not ding.
Perhaps a ding timer? Like, if the ding has occurred, it will clear itself after say 3 or 5 seconds? (Power out will need to come back on after a bit).
but... I dont know how to write timers that well yet, so I have no idea how that would be written.
Any advice? :/
Code:
<Element>
<Select>
<Value>
(L:AVEsound_played77,bool) 0 ==
(A:VELOCITY BODY Z,knot) 85 <
(A:SIM ON GROUND,bool) 0 ==
and and
if{
1 (>L:XMLSND78,enum)
1 (>L:AVEsound_played77,bool)
}
(L:AVEsound_played77,bool) 1 ==
(A:VELOCITY BODY Z,knot) 85 >
(A:SIM ON GROUND,bool) 1 ==
and and
if{
3 (>L:AVEsound_played77,bool)
</Value>
</Select>
</Element>
<Element>
<Select>
<Value>
(L:AVEsound_played77,bool) 0 ==
(A:VELOCITY BODY Z,knot) 85 <
(A:SIM ON GROUND,bool) 0 ==
and and
if{
1 (>L:XMLSND78,enum)
1 (>L:AVEsound_played77,bool)
}
(L:AVEsound_played77,bool) 1 ==
(A:VELOCITY BODY Z,knot) 85 >
(A:SIM ON GROUND,bool) 1 ==
and and
if{
3 (>L:AVEsound_played77,bool)
</Value>
</Select>
</Element>
Bill of the giant eyebrow developer race...


