Add radius to LuaSurface.destroy_decoratives() and LuaSurface.find_decoratives_filtered()
Posted: 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.
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.