Hello everybody, Is it possible to set the ambient map temperature with a LUA trigger? For example, the default map temperature is 20°C. If you drive into the LUA trigger, the temperature is set to 0°C. If you leave the trigger the temperature will be set back to the default map temperature. Thanks! regards, MysteryManGer
Hi, this thread could help: https://www.beamng.com/threads/changing-temperature-curve.89155/ All you'll need to do is add the code into your trigger: Code: local function onBeamNGTrigger(data) if data.subjectID == be:getPlayerVehicleID(0) then if data.event == "enter" then scenetree.theLevelInfo:setTemperatureCurveC({{0,0}, {1,0}}) elseif data.event == "exit" then scenetree.theLevelInfo:setTemperatureCurveC({{0,20}, {1,20}}) end core_environment:reset() end end return onBeamNGTrigger
Despite the search function, I couldn't find this thread. Thank you very much DaddelZeit, will try it tomorrow!