find_entities_filtered question
Posted: Thu Jul 14, 2016 7:32 pm
Hi,
Does the "area" on find_entities_filtered have to be a square or can I make it a circle?
I currently have:
But would like to make the area just the circle radius of artifactCollectorRadius.
Is that possible?
Thanks.
Does the "area" on find_entities_filtered have to be a square or can I make it a circle?
I currently have:
Code: Select all
items = collector.surface.find_entities_filtered({area = {{x = collector.position.x - artifactCollectorRadius, y = collector.position.y - artifactCollectorRadius}, {x = collector.position.x + artifactCollectorRadius, y = collector.position.y + artifactCollectorRadius}}, name = "item-on-ground"})
Is that possible?
Thanks.