Output energy dependent on the global variable
Posted: Wed Aug 12, 2020 1:24 am
How to make the output energy dependent on the global variable?
I make some mod, that contain variable in global (because they are tied to the number of objects launched into space). And a certain entity must generate energy in the amount of global.variable / entity.name count in this world * 100Kw. How do I do this?
I only start learning lua (i know ะก++ and C#) and factorio modding, sorry if this is a stupid question
I make some mod, that contain variable in global (because they are tied to the number of objects launched into space). And a certain entity must generate energy in the amount of global.variable / entity.name count in this world * 100Kw. How do I do this?
I only start learning lua (i know ะก++ and C#) and factorio modding, sorry if this is a stupid question