Hello on all of you.
I'm trying to get sounds working for my vehicle and I'm studying the original script "ship_steamer.lua". This is a small script as you can see in attached screen shot. My problem is to understand some parts of the content. I hope there is someone that can explain the meaning of:
- refDist (in box number 1)
- gain (in box number 2)
- and the first and second numbers inside soundeffectutil.sampleCurve
- the numbers after input.power and input.speed (in this example = 01)
- pitch (in box number 2)
I have copied this .lua and only changed the track names to my own sounds and I can hear only the sound from the first config row
( _ship_diesel_old_drive.wav ). I would be glad if I could hear a completely different sound when the vehicle is in idle or shifting between medium and full speed.
Anyone that knows if it exists some documentation of the game scripts?
Best regards
melectro