improved plane destruction, added plane recover under certain circunstances, aded uuid mamager for future inventory management

This commit is contained in:
Alexsandro Percy 2024-06-30 11:05:34 -03:00
parent 690d3db901
commit e344bf136b
4 changed files with 78 additions and 0 deletions

View file

@ -363,6 +363,10 @@ function airutils.destroy(self, by_name, by_automation)
if self._destroy_parts_method then
self._destroy_parts_method(self)
end
local obj_children = self.object:get_children()
for _, child in ipairs(obj_children) do
child:remove()
end
if by_automation == false then
local destroyed_ent = nil