LuaCircuitNetwork.circuit_network_id

User avatar
Macros
Inserter
Inserter
Posts: 23
Joined: Mon Mar 07, 2016 11:42 am
Contact:

LuaCircuitNetwork.circuit_network_id

Post by Macros »

In an entity's circuit network panel, there's a line that says "Connected to Network: ", followed by a number that is presumably a unique identifier for a circuit network. My request is for an API call in the LuaCircuitNetwork class to read this id number.
>nature.destroy()
User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: LuaCircuitNetwork.circuit_network_id

Post by bobingabout »

I don't know if you can get access to this as a number, but you can get access to the network through the LUA scripts. I'm not 100%, but I'm fairly sure there is a way to get the ID, even if you have to ask the network what it's ID is, rather than just asking the entity for the network ID.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14316
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: LuaCircuitNetwork.circuit_network_id

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”