Made it. Now cargo can be defined in the Mission Editor as #CARGO

This commit is contained in:
FlightControl_Master
2018-04-17 06:25:40 +02:00
parent 3757eb06d9
commit af050629aa
3 changed files with 87 additions and 24 deletions

View File

@@ -610,7 +610,7 @@ do -- CARGO
-- @param #number NearRadius The radius when the cargo will board the Carrier (to avoid collision).
-- @return #boolean
function CARGO:IsNear( PointVec2, NearRadius )
--self:F2( { PointVec2 = PointVec2, NearRadius = NearRadius } )
--self:F( { PointVec2 = PointVec2, NearRadius = NearRadius } )
if self.CargoObject:IsAlive() then
--local Distance = PointVec2:DistanceFromPointVec2( self.CargoObject:GetPointVec2() )