I have some code to use for "smoke modifications", but I don't know how to create a script for it.;
uncomment these to randomize smoke generation for each locomotive
--RPMCF = math.random()
--AMPCF = math.random()
--BLNSS = 0.75 + (math.random() * 0.5)
--COL = math.random() * 10
--RATE = math.random() / 10
Can anyone give me guidance for this?

Joe(purpjj1)