Allow tile names in find_entities_filtered ghost_name filter

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
asher_sky
Long Handed Inserter
Long Handed Inserter
Posts: 73
Joined: Sun Oct 18, 2020 7:13 pm
Contact:

Allow tile names in find_entities_filtered ghost_name filter

Post by asher_sky »

https://lua-api.factorio.com/latest/con ... lters.html

I think that the ghost_name field on EntitySearchFilters should accept tile-ghost names (TileID), not just entity-ghost names (EntityID).

I want to find all landfill ghosts nearby, but since landfill isn't an EntityID find_entities_filtered errors:

surface.find_entities_filtered {
area = area,
force = player_force,
type = "tile-ghost",
ghost_name = "landfill",
}
User avatar
asher_sky
Long Handed Inserter
Long Handed Inserter
Posts: 73
Joined: Sun Oct 18, 2020 7:13 pm
Contact:

Re: Allow tile names in find_entities_filtered ghost_name filter

Post by asher_sky »

And/Or, add a ghost_name filter for find_tiles_filtered?
Post Reply

Return to “Modding interface requests”