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
Filter Inserter
Filter Inserter
Posts: 278
Joined: Sat Dec 09, 2017 6:01 pm
Contact:

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

Post by Muppet9010 »

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: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post by Rseding91 »

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”