getEngineSoundID
Definition
-- @/lua/vehicle/powertrain.lua:998
local function getEngineSoundID()
engineSoundIDCounter = engineSoundIDCounter + 1
return engineSoundIDCounter
end
Callers
@/lua/vehicle/powertrain/electricMotor.lua
device.soundConfiguration = {}
device.engineSoundID = powertrain.getEngineSoundID()
local rpmInRate = soundConfig.rpmSmootherInRate or 15
@/lua/vehicle/powertrain/combustionEngine.lua
if soundConfig then
device.engineSoundID = powertrain.getEngineSoundID()
device.soundMaxLoadMix = soundConfig.maxLoadMix or 1
if soundConfig then
device.engineSoundIDExhaust = powertrain.getEngineSoundID()
device.soundMaxLoadMixExhaust = soundConfig.maxLoadMix