ahs063b
09-26-2010, 12:39 PM
Several weeks ago I began a simple script with sounds, but I committed a mistaque that I'm not able to find from then on:
when the aircraft speed is higher than 135Knt, I want to sound (only one time!) an alarm, but sadly this sound repits again and again, very quickly. This alarm only stops when the speed is slower than 135Knt.
I don't undertand, I thought that Var0702 was enough to stop the sound.
This is the script:
Var 0701, Link SOUND // Sound on
Var 0702, Link SOUND, Type S // Sound off
Var 1224
Var 1220, Link FSUIPC_IN, Offset $02BC, Length 4 // IAS in knots * 128
{
V1224 = V1220 / 128 // IAS
IF V1224 > 135 // if IAS higher than 135Knt...
{
V0701 = 3 // the alarm file in sioc.ini
V0701 = 0
}
ELSE
{
V0702 = 3
V0702 = 0
}
}
Please, I need your advice.
Greetings from Barcelona, Spain.
when the aircraft speed is higher than 135Knt, I want to sound (only one time!) an alarm, but sadly this sound repits again and again, very quickly. This alarm only stops when the speed is slower than 135Knt.
I don't undertand, I thought that Var0702 was enough to stop the sound.
This is the script:
Var 0701, Link SOUND // Sound on
Var 0702, Link SOUND, Type S // Sound off
Var 1224
Var 1220, Link FSUIPC_IN, Offset $02BC, Length 4 // IAS in knots * 128
{
V1224 = V1220 / 128 // IAS
IF V1224 > 135 // if IAS higher than 135Knt...
{
V0701 = 3 // the alarm file in sioc.ini
V0701 = 0
}
ELSE
{
V0702 = 3
V0702 = 0
}
}
Please, I need your advice.
Greetings from Barcelona, Spain.