Page 1 of 1

Add support_range to LuaEntityPrototype

Posted: Mon Sep 15, 2025 10:34 pm
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.

Re: Add support_range to LuaEntityPrototype

Posted: Tue Sep 16, 2025 12:12 pm
by boskid
Ok. For 2.0.67 added LuaEntityPrototype::support_distance read for RailSupport and RailRamp. Also added LuaEntity::rail_length that may be useful.