I have a catapult sound effect that i created that i want to use in place of the one supplied with the COP3 carrier ops package. One of the differences in my SoundFX is that there is a building of pressure sound before the actual launch sound. Right now the launch section of the code sequence of events is...
Check Launch condition "state", if "1" then
Condition for launch met
Play sound
execute launch
I want to add a delay of .8 sec between the time the sound PLAY is triggered and when the actual launch is executed. A "Launch" is executed if the Launch "State" is "1", the relevant code section (FS9 schema) is as follows...
I have looked at examples of some delays routines but found nothing that seems to fit my application since in this case the update freq is 0 and i don't want to Start the sound PLAY again.
I thought maybe a timer "loop" of some kind ?
Could someone please point me in the right direction?
thanks
Joel
Check Launch condition "state", if "1" then
Condition for launch met
Play sound
execute launch
I want to add a delay of .8 sec between the time the sound PLAY is triggered and when the actual launch is executed. A "Launch" is executed if the Launch "State" is "1", the relevant code section (FS9 schema) is as follows...
Code:
<Update Frequency="0"/>
// Other code testing other "states".....
// Launch condition met, ie L:RCB_CatapultState = 1, Launch when engine reaches desired output level (set per aircraft in a "ini" file) ...
<Element>
<Select>
<Value>
(L:RCB_CatapultState,enum) 1 ==
if{
(A:ENG1 N1 RPM,percent) (L:COP_CatapultLaunchN1,number) >
(A:GENERAL ENG1 THROTTLE LEVER POSITION,percent) 90 > &&
if{
(>K:PARKING_BRAKES)
1 (>L:COP_CatapultLaunchSound,enum) // PLAY SOUND Starts Here....
// want to INSERT .8 sec DELAY HERE then execute following LAUNCH section....
(P:ABSOLUTE TIME,seconds) (>G:Var1) (* Var1: timer *)
(A:GROUND VELOCITY,knots) 1.688 * (>G:Var2) (* Var2: Groundspeed at launch-start in ft/sec *)
(L:COP_CatapultLaunchSpeed,number)
(A:AIRCRAFT WIND Z,knots) - 1.688 * (>G:Var3) (* Var3: Groundspeed at launch-end in ft/sec *)
(G:Var3) (G:Var2) - (G:Var2) * (G:Var3) (G:Var2) - sqr
2 / + (L:COP_CatapultDistance,number) / (>G:Var4) (* Var4: required decelleration A in ft/secSQR *)
2 (>L:RCB_CatapultState,enum)
}
els{
(A:BRAKE PARKING POSITION,bool) ! (A:SIM ON GROUND,bool) ! ||
if{ 0 (>L:RCB_CatapultState,enum) }
}
}
</Value>
</Select>
</Element>
I have looked at examples of some delays routines but found nothing that seems to fit my application since in this case the update freq is 0 and i don't want to Start the sound PLAY again.
I thought maybe a timer "loop" of some kind ?
Could someone please point me in the right direction?
thanks
Joel





