Hello.
We discussed this topic in an earlier thread before Christmas. I tried to search for it but failed.
If you are using version 1.4 and start the game with the engine stopped, the Initial_Trigger line is not required. After the line that starts the engine [Discrete_Trigger (23 PlayOneShot ...] this line must be closed [Disable_Trigger]. This will prevent recurrence.
Full code:
Stream (
Priority ( 8 )
Triggers ( 14
Initial_Trigger ( DisableTrigger ( 11 ) )
Initial_Trigger ( DisableTrigger ( 12 ) )
Discrete_Trigger ( 23 PlayOneShot ( 1 File ( "m61_indit_x.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
Discrete_Trigger ( 23 StartLoopRelease ( 1 File ( "m61_alapjarat.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
Discrete_Trigger ( 23 DisableTrigger ( 3 ) )
Discrete_Trigger ( 23 EnableTrigger ( 11 ) )
Discrete_Trigger ( 23 EnableTrigger ( 12 ) )
Discrete_Trigger ( 24 ReleaseLoopRelease () )
Discrete_Trigger ( 24 PlayOneShot ( 1 File ( "m61_leall_x.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
Discrete_Trigger ( 24 EnableTrigger ( 3 ) )
Variable_Trigger ( Variable2_Inc_Past 0.10 ReleaseLoopRelease () )
Variable_Trigger ( Variable2_Dec_Past 0.12 StartLoopRelease ( 1 File ( "m61_alapjarat.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
Discrete_Trigger ( 24 DisableTrigger ( 11 ) )
Discrete_Trigger ( 24 DisableTrigger ( 12 ) )
)
VolumeCurve(
DistanceControlled
CurvePoints ( 3
0 1.0
100 1.0
400 0.0
)
Granularity ( 0.05 )
)
)
Hello.
We discussed this topic in an earlier thread before Christmas. I tried to search for it but failed.
If you are using version 1.4 and start the game with the engine stopped, the Initial_Trigger line is not required. After the line that starts the engine [Discrete_Trigger (23 PlayOneShot ...] this line must be closed [Disable_Trigger]. This will prevent recurrence.
Full code:
Of course, this solution works if you have three audio files.
1. Engine start sound (m61_indit_x.wav)
2. Idle sound (m61_alapjarat.wav)
3. Engine stop sound. (m61_leall_x.wav).
There was also a solution for starting an engine with an audio file in said thread.
Laci1959