This commit is contained in:
Sven Van de Velde
2016-08-05 06:50:30 +02:00
parent 75ea07fea0
commit e1610330f4
4 changed files with 205 additions and 456 deletions

View File

@@ -68,5 +68,22 @@ function OBJECT:GetID()
return nil
end
--- Destroys the OBJECT.
-- @param #OBJECT self
-- @return #nil The DCS Unit is not existing or alive.
function UNIT:Destroy()
self:F2( self.ObjectName )
local DCSObject = self:GetDCSObject()
if DCSObject then
DCSObject:destroy()
end
return nil
end