A strange problem, can you help me solve it?

Place to get help with not working mods / modding interface.
Post Reply
sdgmlj
Fast Inserter
Fast Inserter
Posts: 127
Joined: Sun Jul 04, 2021 11:12 pm
Contact:

A strange problem, can you help me solve it?

Post by sdgmlj »

I wrote a script to automatically place the buildings in the blueprint (no robot is required), but after automatically adding the plug-in, the icon of "item demand" still exists. Is there any way to delete this icon?
Attachments
屏幕截图 2022-04-27 133535.jpg
屏幕截图 2022-04-27 133535.jpg (69.09 KiB) Viewed 695 times

robot256
Filter Inserter
Filter Inserter
Posts: 596
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Re: A strange problem, can you help me solve it?

Post by robot256 »

That's called an 'item-request-proxy' entity. It has the same coordinates as the machine, so you can find it with:

Code: Select all

local proxies = target.surface.find_entities_filtered{
            name = "item-request-proxy",
            position = target.position
          }
Where target is the assembler LuaEntity object.

sdgmlj
Fast Inserter
Fast Inserter
Posts: 127
Joined: Sun Jul 04, 2021 11:12 pm
Contact:

Re: A strange problem, can you help me solve it?

Post by sdgmlj »

robot256 wrote:
Wed Apr 27, 2022 10:58 am
That's called an 'item-request-proxy' entity. It has the same coordinates as the machine, so you can find it with:

Code: Select all

local proxies = target.surface.find_entities_filtered{
            name = "item-request-proxy",
            position = target.position
          }
Where target is the assembler LuaEntity object.
Thank you. I'll study it

Post Reply

Return to “Modding help”