A strange problem, can you help me solve it?
A strange problem, can you help me solve it?
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 (69.09 KiB) Viewed 695 times
Re: A strange problem, can you help me solve it?
That's called an 'item-request-proxy' entity. It has the same coordinates as the machine, so you can find it with:
Where target is the assembler LuaEntity object.
Code: Select all
local proxies = target.surface.find_entities_filtered{
name = "item-request-proxy",
position = target.position
}
My mods: Multiple Unit Train Control, Smart Artillery Wagons
Maintainer of Vehicle Wagon 2, Cargo Ships, Honk
Maintainer of Vehicle Wagon 2, Cargo Ships, Honk
Re: A strange problem, can you help me solve it?
Thank you. I'll study itrobot256 wrote: ↑Wed Apr 27, 2022 10:58 amThat's called an 'item-request-proxy' entity. It has the same coordinates as the machine, so you can find it with:
Where target is the assembler LuaEntity object.Code: Select all
local proxies = target.surface.find_entities_filtered{ name = "item-request-proxy", position = target.position }