Quantcast
Channel: BeamNG
Viewing all articles
Browse latest Browse all 70823

Getting & Manipulating turbocharger wastegate limits

$
0
0
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.

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...
Getting & Manipulating turbocharger wastegate limits

Viewing all articles
Browse latest Browse all 70823

Trending Articles