Page 1 of 1
I hope this isn´t a stupid question but what´s LUA scripting
Posted: Sat Jan 17, 2015 2:09 pm
by simon3747
I´ve heard of it but I´m in the dark. Does anybody have any examples?
Thanks in advance,
Simon3747
Re: I hope this isn´t a stupid question but what´s LUA scripting
Posted: Sat Jan 17, 2015 3:15 pm
by Juanillo99
Re: I hope this isn´t a stupid question but what´s LUA scripting
Posted: Sat Jan 17, 2015 8:18 pm
by wacampbell
LUA is a computer programming language described here:
http://www.lua.org/about.html
A LUA script is just another name for a LUA program.
In the context of TS2015, these scripts are written by the builders of the various scenery items to give them control over how they behave. For example, a LUA script for a railway crossing gate would check for the presence of a train, and when one came near, it would flash the lights, lower the gate, ring the bell etc. LUA scripts are used to control the train signalling lights along the rail line and to give special functionality to locomotives, turning on the running lights for example when a certain key is pressed. There are many other uses as well.