Traversing entities of LuaTransportLine

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
Atria
Long Handed Inserter
Long Handed Inserter
Posts: 57
Joined: Sat Jul 09, 2016 10:25 am
Contact:

Traversing entities of LuaTransportLine

Post 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

Post Reply

Return to “Modding interface requests”