Community Forum

Vehicle sounds

Forum Overview >> Scripting

CategoryScripting
Created06.11.2014 21:54


Alexander Matveev (Unknown) 06.11.2014 22:03
Greatings!

I am working on new mod for now, and i need to change the vehicle start/stop and run sounds dynamically, depending on vehicle damage rate.
So, the question is - how do i replace current sound by the new one?
self.motorStopSound and self.motorStartSound don't work anymore, as it was in FS2013, it returns a nil value...

Best regards!




Emil Drefers (Unknown) 10.12.2014 10:17
Hi,

the following tables contain the sounds for a vehicle
sampleMotorStart
sampleMotorStop
sampleMotor
sampleMotorRun
sampleMotorRun2

Further you have a set of variables to adjust the volume and pitch of the sounds.
Maybe just print the 'vehicle table', so that you can see all variables of a vehicle ;)


Cheers,
Emil



Note: Log in to post. Create a new account here.