Page 1 of 1

control.lua for vanilla entities

Posted: Thu Jul 28, 2016 11:53 am
by aubergine18
I'm trying to find the control.lua for vanilla entities but to no avail. I can find their prototypes, graphics, etc., but not the code that actually 'actuates' them once placed in game. Anyone know where to find their scripts?

Re: control.lua for vanilla entities

Posted: Thu Jul 28, 2016 12:05 pm
by Helfima
it's not in lua code, i mean is in c++

Re: control.lua for vanilla entities

Posted: Thu Jul 28, 2016 12:31 pm
by aubergine18
Uhm, that's a shame. I'm trying to work out how indicator lights change colour based on their circuit input. Or alternatively how train engines change colour based on UI settings.

Re: control.lua for vanilla entities

Posted: Thu Jul 28, 2016 2:36 pm
by DedlySpyder
The base game has its folder for creating prototypes, but anything not in there is accomplished in the core game in C++