add find_units for Search across the entire surface

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
plexpt
Long Handed Inserter
Long Handed Inserter
Posts: 96
Joined: Mon Feb 07, 2022 2:32 am
Contact:

add find_units for Search across the entire surface

Post by plexpt »

https://lua-api.factorio.com/latest/cla ... find_units

Now I have to pass in area, but I need to search the entire surface, otherwise I will get an error.

value for required field 'area' is missing
plexpt
Long Handed Inserter
Long Handed Inserter
Posts: 96
Joined: Mon Feb 07, 2022 2:32 am
Contact:

Re: add find_units for Search across the entire surface

Post by plexpt »

in addition , I can't find a natural one?

surface.find_units({ area = { { -2000, -2000 }, { 2000, 2000 } }, force = "neutral", condition = "all" })
Post Reply

Return to “Modding interface requests”