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 991 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, RGB Pipes, Shipping Containers, Rocket Log, Smart Artillery Wagons.
Maintainer of Auto Deconstruct, Cargo Ships, Vehicle Wagon, Honk, Shortwave.
Maintainer of Auto Deconstruct, Cargo Ships, Vehicle Wagon, Honk, Shortwave.
Re: A strange problem, can you help me solve it?
Thank you. I'll study itrobot256 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:
Where target is the assembler LuaEntity object.Code: Select all
local proxies = target.surface.find_entities_filtered{ name = "item-request-proxy", position = target.position }