It really shouldn't be difficult:
First, get yer sound all set up and loopin
When the car is "turned on" start playing it, when it's turned off stop it
Now the easy way is to figure out the speed of the car by doing
CarEngine.velocity.magnitude
Now divide that by some number, clip it to 0-1, and use it to keep between a lower/upper volume and pitch, separately.
(Slightly) more complex would be to read the Throttle property of the VehicleSeat, and if it's 1/-1 move towards those upper limits, when it =0 move towards the lower limits.
Sorry I wasn't very descriptive, PM me and I can help you when I'm on my computer. |