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.
Add radius to LuaSurface.destroy_decoratives() and LuaSurface.find_decoratives_filtered()
- Muppet9010
- Filter Inserter
- Posts: 281
- Joined: Sat Dec 09, 2017 6:01 pm
- Contact:
Re: Add radius to LuaSurface.destroy_decoratives() and LuaSurface.find_decoratives_filtered()
Seems fine. But why not make it yourself?
If you want to get ahold of me I'm almost always on Discord.