Page 1 of 1
LuaEntityPrototype::max_distance/speed for underground belts
Posted: Sun May 15, 2016 1:53 pm
by prg
What the title says: I'd like to be able to get at the speed of belts and more importantly max_distance of underground belts at runtime. I don't see a sane way of doing this currently.
Seems like access to speed was
already requested with a comment that this should be pretty easy to implement, but this hasn't happened yet as far as I can tell.
Re: LuaEntityPrototype::max_distance/speed for underground belts
Posted: Wed Jun 01, 2016 11:17 pm
by sparr
Myself and
viewtopic.php?f=25&t=12420 would also like access to this info. Not just for underground belts, normal belt speed is needed too.
Re: LuaEntityPrototype::max_distance/speed for underground belts
Posted: Mon Jun 06, 2016 10:01 pm
by prg
While you're at it, max_underground_distance for pipe-to-ground would be great, too!
Re: LuaEntityPrototype::max_distance/speed for underground belts
Posted: Mon Jun 06, 2016 10:04 pm
by Zeblote
Why do you need to make requests for so many little things? All prototypes should be readable at runtime, job done.
Re: LuaEntityPrototype::max_distance/speed for underground belts
Posted: Tue Jun 07, 2016 8:37 am
by Rseding91
Done for 0.13:
changelog wrote:Added LuaEntityPrototype::belt_speed and underground_belt_distance read.