Fixes for A2G tasking, reduce trace, and put in key trace lines to follow the tasking.

This commit is contained in:
FlightControl_Master
2017-12-03 08:06:35 +01:00
parent 76ea635b63
commit a2fa2c4fa2
4 changed files with 29 additions and 13 deletions

View File

@@ -58,7 +58,6 @@ end
-- @return Dcs.DCSWrapper.Object#Object.ID ObjectID
-- @return #nil The DCS Object is not existing or alive.
function OBJECT:GetID()
self:F2( self.ObjectName )
local DCSObject = self:GetDCSObject()
@@ -67,6 +66,8 @@ function OBJECT:GetID()
return ObjectID
end
BASE:E( { "Cannot GetID", Name = self.ObjectName, Class = self:GetClassName() } )
return nil
end
@@ -74,7 +75,6 @@ end
-- @param #OBJECT self
-- @return #nil The DCS Unit is not existing or alive.
function OBJECT:Destroy()
self:F2( self.ObjectName )
local DCSObject = self:GetDCSObject()
@@ -83,6 +83,8 @@ function OBJECT:Destroy()
DCSObject:destroy()
end
BASE:E( { "Cannot Destroy", Name = self.ObjectName, Class = self:GetClassName() } )
return nil
end