Add radius to LuaSurface.destroy_decoratives() and LuaSurface.find_decoratives_filtered()

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
User avatar
Muppet9010
Fast Inserter
Fast Inserter
Posts: 175
Joined: Sat Dec 09, 2017 6:01 pm
Contact:

Add radius to LuaSurface.destroy_decoratives() and LuaSurface.find_decoratives_filtered()

Post by Muppet9010 » Mon Jul 08, 2019 6:37 pm

Add an optional radius argument to LuaSurface.destroy_decoratives() and LuaSurface.find_decoratives_filtered() for use with position to get/destroy all decoratives within a radius of a point. Similar to how radius functions in LuaSurface.find_entities_filtered()

Use case is for deleting all decoratives within a radius of a point without the overhead of returning the decoratives to lua. I use an explosion damage effect to do this for the entities.

Rseding91
Factorio Staff
Factorio Staff
Posts: 9977
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Add radius to LuaSurface.destroy_decoratives() and LuaSurface.find_decoratives_filtered()

Post by Rseding91 » Tue Jul 09, 2019 5:02 pm

Seems fine. But why not make it yourself?
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Modding interface requests”

Who is online

Users browsing this forum: No registered users