[solved] Disable the new 1.1 train limit via scripts?
Posted: Mon Jan 18, 2021 4:43 am
How do I toggle this checkbox via scripts:
I can access the number via LuaEntity's trains_limit property but i can't seem to find the property for that corresponds to the checkbox. Passing any number to trains_limit automatically enables this checkbox. Setting trains_limit to 0 does not have the desired effect (the station actually starts accepting at most 0 trains). Setting it to nil results in a type error ("real number expected got nil"). Control behavior's set_trains_limit is a different checkbox.
I can access the number via LuaEntity's trains_limit property but i can't seem to find the property for that corresponds to the checkbox. Passing any number to trains_limit automatically enables this checkbox. Setting trains_limit to 0 does not have the desired effect (the station actually starts accepting at most 0 trains). Setting it to nil results in a type error ("real number expected got nil"). Control behavior's set_trains_limit is a different checkbox.