Add support_range to LuaEntityPrototype

thebrick448
Burner Inserter
Burner Inserter
Posts: 9
Joined: Mon May 06, 2024 9:45 am
Contact:

Add support_range to LuaEntityPrototype

Post by thebrick448 »

Currently, support_range is missing from LuaEntityPrototype. The only way to get support_range is to capture it from rail-ramps and rail-supports during the data phase, and cache it for runtime.

Adding this property to LuaEntityPrototype will allow me to more easily access it when programmatically building properly supported elevated railways.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4160
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: Add support_range to LuaEntityPrototype

Post by boskid »

Ok. For 2.0.67 added LuaEntityPrototype::support_range read for RailSupport and RailRamp. Also added LuaEntity::rail_length that may be useful.
Post Reply

Return to “Implemented mod requests”