find_construction_networks_by_position

mknejp
Fast Inserter
Fast Inserter
Posts: 154
Joined: Wed Apr 27, 2016 8:29 pm
Contact:

find_construction_networks_by_position

Post by mknejp »

There is already LuaSurface.find_logistic_network_by_position(position, force) but it obviously only works if you test for a position inside the orange zone.
It would be useful to have

LuaSurface.find_construction_networks_by_position(position, force) -> array of LuaLogisticNetwork

which finds the networks covering the given position with their green zone. It returns an array since construction zones can overlap without being connected.

Analogous LuaForce.find_construction_networks_by_position(position, surface) -> array of LuaLogisticNetwork
Rseding91
Factorio Staff
Factorio Staff
Posts: 14913
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: find_construction_networks_by_position

Post by Rseding91 »

Added for 0.15.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Implemented mod requests”