Wrong!
The code to define the engine lacks the definition of the train's Engine sound. The code for Object TrainEngineVerySlow should include this line:
Code:
RunningSound = TrainRunningLoop
Without it, the train has no engine noise. RunningSound becomes undefined and the sound is terribly lacking.
You should also create a script under PlyrCivilian, in a folder named 'choo-choo', and name the script 'WhistleVolume'. In it, create this:
Code:
[ns A] choo-choo
[ns A D]WhistleVolume
*** IF ***
True.
*** THEN ***
Sound 'TrainWhistle' play at 100.00% of full volume.
If you don't, the train's whistle sounds weak, and if you've ever been next to a train when it sounds it's horn, you know it's ear splitting! Without this code, the whistle is wimpy! VERY WIMPY!
You can create this script by
1. Create a new folder under plyrCivilian and name it 'choo-choo'
2. Create a new script. Name it 'WhistleVolume'
3. Leave the condition value at the default. 'IF TRUE'
4. Go to the Actions if True tab.
5. Select the default Null action, then click the Edit button.
6. Find the Multimedia section, then select 'Sound Event -- override volume -- type'
7. Change the parameters to TrainWhistle and 100.0
8. Click Okay
9. Export the script with the name 'train whistle volume.scb' so that you can re-use it.
10. Click Okay
You are done. You are complete!
Without the line
RunningSound = TrainRunningLoop
your train engine doesn't chug! It sounds wimpy. And without setting the whistle's volume to 100%, the whistle is wimpy too (it still is, and you really need to pull the wav file out of Audio.big in the Generals folder, edit the wav file by raising it's amplitude (volume) by at least 2 dB, then replacing the sound file in audio.big by resinserting it).