Page 1 of 1

Traversing entities of LuaTransportLine

Posted: Sat Mar 23, 2024 7:26 am
by Atria
All functions of LuaTransportLine appears to work on part of transport line of entity I got the got it from. Except for "line_equals", "input_lines" and "output_lines" which operate on entire tranport line, spanning possibly multiple tiles.

This makes traversing the entities of tranport lines complicated because following code could return same "entity" I started with:

Code: Select all

entity.get_transport_line(1).output_lines[1].owner
Conversation developers had about this provided by Bilka:
Image