Page 1 of 1

Script for smoke code

Unread postPosted: Sun Aug 20, 2017 12:41 am
by purpjj1
HI all,

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? !!jabber!!

Joe(purpjj1)

Re: Script for smoke code

Unread postPosted: Sat Sep 02, 2017 8:50 am
by RudolfJan
No idea, but it suggests you need to remove the two dashes (which means these lines are not active) at the beginning of each line. The recompile the script, using the lua compiler and replace the original should do. Do not forget to make backups, you never know ...You did not show a complete script so it is hard to judge if anything else needs to be done.