Thanks.
The document is not helpful enough. It doesn't show what to do. You mean, on_init is something for the setup of global, and on_load is for the metatable? OK, I'll give it a try.
Thanks.
Yes, it must be very reliable.
Yeah. That's it.AmericanPatriot wrote: Tue Mar 09, 2021 12:59 am It sounds to me like he wants to create a scenario with random recipe machines spread around the map.
The recipes won’t be set by the payer, but by a script.
Oh, really? This is very good. But it's not direct enough. I still have to maintain a container, or a dictionary to store all the index which is somehow similar to the code I post upon.
I doesn't seem very enough. In the official docs downloaded with game, "The unit number or nil if the entity doesn't have one.". It doesn't guarantee.bormand wrote: Tue Mar 09, 2021 1:45 pm Most entities have unique unit_number, as far as I remember. Would it be enough in this case?
Hi, I replied in 4th layer. I Hope it helps.