diff --git a/Moose Development/Moose/Wrapper/Positionable.lua b/Moose Development/Moose/Wrapper/Positionable.lua index a1e47f766..571e0d48c 100644 --- a/Moose Development/Moose/Wrapper/Positionable.lua +++ b/Moose Development/Moose/Wrapper/Positionable.lua @@ -239,19 +239,18 @@ end function POSITIONABLE:GetVec3() local DCSPositionable = self:GetDCSObject() if DCSPositionable then --- local status, vec3 = pcall( --- function() --- local vec3 = DCSPositionable:getPoint() --- return vec3 --- end --- ) + --local status, vec3 = pcall( + -- function() + -- local vec3 = DCSPositionable:getPoint() + -- return vec3 + --end + --) local vec3 = DCSPositionable:getPoint() - return vec3 --- if status then --- return vec3 --- else --- self:E( { "Cannot get Vec3 from DCS Object", Positionable = self, Alive = self:IsAlive() } ) --- end + --if status then + return vec3 + --else + --self:E( { "Cannot get Vec3 from DCS Object", Positionable = self, Alive = self:IsAlive() } ) + --end end -- ERROR! self:E( { "Cannot get the Positionable DCS Object for GetVec3", Positionable = self, Alive = self:IsAlive() } ) diff --git a/Moose Development/Moose/Wrapper/Unit.lua b/Moose Development/Moose/Wrapper/Unit.lua index cdc5d63d6..cd6769fc2 100644 --- a/Moose Development/Moose/Wrapper/Unit.lua +++ b/Moose Development/Moose/Wrapper/Unit.lua @@ -703,15 +703,15 @@ function UNIT:GetAmmo() self:F2( self.UnitName ) local DCSUnit = self:GetDCSObject() if DCSUnit then --- local status, unitammo = pcall( --- function() --- local UnitAmmo = DCSUnit:getAmmo() --- return UnitAmmo --- end --- ) --- if status then --- return unitammo --- end + --local status, unitammo = pcall( + -- function() + -- local UnitAmmo = DCSUnit:getAmmo() + -- return UnitAmmo + --end + --) + --if status then + --return unitammo + --end local UnitAmmo = DCSUnit:getAmmo() return UnitAmmo end