multiple assembling machines

Place to get help with not working mods / modding interface.
hreintke
Fast Inserter
Fast Inserter
Posts: 115
Joined: Mon Sep 04, 2017 6:52 pm
Contact:

multiple assembling machines

Post by hreintke »

Hi,

I am learning how overlapping entities connect to each other.

Can create two overlapping inserters using code below twice:

Code: Select all

/c game.player.surface.create_entity{name="fast-inserter",force = game.player.force, position={game.player.selected.position.x+1,game.player.selected.position.y+1}}
Then they both work simultaneous.

When creating overlapping assembling-machine-2 in the same way

- create first
- provide recipte
- create second
- provide different recipe

Only the first one is active (provided material for construction by the inserter)

Can see that both machines are configured in alt-view. Both symbols are displayed.
Stacked_ASM.JPG
Stacked_ASM.JPG (40.97 KiB) Viewed 1071 times
How would I get both ASM's working at the same time ?
hreintke
Fast Inserter
Fast Inserter
Posts: 115
Joined: Mon Sep 04, 2017 6:52 pm
Contact:

Re: multiple assembling machines

Post by hreintke »

Thanks,

Can read that property and indeed points to the entity.
But is readonly, and in create_entity function there is no possibility to set it.

Any idea whether there is a way to update ?
Post Reply

Return to “Modding help”