Page 1 of 1

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

Posted: Mon Jul 08, 2019 6:37 pm
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.

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

Posted: Tue Jul 09, 2019 5:02 pm
by Rseding91
Seems fine. But why not make it yourself?