hello, I am currently trying to influence background transparency based on the current rpm of a vehicle. the rpm value is already sorted out, but i was wondering how to use the rpm to scale the value until it reaches 0 or 1.
Hi. The way I would approach this is:
The value for Transparency goes from 0 to 1.
The maximum RPM value could perhaps be set to 700 or whatever it is for your vehicle
The current RPM value will go from for example 0 to 7000.
The background transparency then becomes a ratio of these 2 values
local bgtransparency = 1 / (MaxRPM / CurrentRPM)
thank you so much for the help, this makes my job a lot easier!