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.
[solved] Disable the new 1.1 train limit via scripts?
[solved] Disable the new 1.1 train limit via scripts?
Last edited by NoQ on Mon Jan 18, 2021 5:36 am, edited 1 time in total.
Re: Disable the new 1.1 train limit via scripts?
Figured it out: obviously i needed to set trains_limit to 4294967295.
Re: [solved] Disable the new 1.1 train limit via scripts?
1.1.13:
Code: Select all
- Writing nil to LuaEntity::trains_limit disables the limit (sets maximum possible value).
Re: [solved] Disable the new 1.1 train limit via scripts?
Whoa, amazing, thank you!!