I've been wanting to manipulate the wastegate limits of the turbocharger systems based on the current gear the car is in with lua, yet having taken a fiddle with some lua cant for the life of me work out how to actually set or retrieve the values.
Getting & Manipulating turbocharger wastegate limits
Code:
local M = {} local function onInit() end local function updateGFX(dt) turbo = v.data.turbocharger if drivetrain.gear == 1 then print "Gear 1" turbo.wastegateStart --print v.data.turbocharger.wastegateStart...