mirror of
https://github.com/APercy/airutils.git
synced 2025-07-15 10:46:42 -04:00
improved plane destruction, added plane recover under certain circunstances, aded uuid mamager for future inventory management
This commit is contained in:
parent
690d3db901
commit
e344bf136b
4 changed files with 78 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue