Script for smoke code

This forum is for the latest version of Train Simulator TS 2017

Script for smoke code

Unread postby purpjj1 » Sun Aug 20, 2017 1:41 am

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

Posts: 3
Joined: Wed Aug 02, 2017 3:08 am

Re: Script for smoke code

Unread postby RudolfJan » Sat Sep 02, 2017 9:50 am

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.
Rudolf (Site in English about hiking and biking in the Netherlands)
Posts: 95
Joined: Sun Jun 28, 2009 2:36 pm
Location: Netherlands

Return to TS2017

Who is online

Users browsing this forum: mikesimpson and 2 guests