Fixed DeployTask

The GroupName must be the new Spawned name.
This commit is contained in:
svenvandevelde 2016-03-11 16:14:58 +01:00
parent e396353cc7
commit dd5d5ed8fa
2 changed files with 10 additions and 6 deletions

View File

@ -634,11 +634,13 @@ function CARGO_GROUP:UnLoad( Client, TargetZoneName )
self:T()
self:T( 'self.CargoName = ' .. self.CargoName )
local CargoGroup = self.CargoSpawn:SpawnFromUnit( Client:GetClientGroupUnit(), 60, 30 )
self.CargoGroupName = CargoGroup:GetName()
self:T( 'self.CargoGroupName = ' .. self.CargoGroupName )
--self.CargoSpawn:FromCarrier( Client:GetClientGroupDCSUnit(), TargetZoneName, self.CargoGroupName )
self.CargoSpawn:SpawnFromUnit( Client:GetClientGroupUnit(), self.CargoGroupName ):RouteToZone( ZONE:New( TargetZoneName ), true )
CargoGroup:RouteToZone( ZONE:New( TargetZoneName ), true )
self:StatusUnLoaded()

View File

@ -5213,11 +5213,13 @@ function CARGO_GROUP:UnLoad( Client, TargetZoneName )
self:T()
self:T( 'self.CargoName = ' .. self.CargoName )
local CargoGroup = self.CargoSpawn:SpawnFromUnit( Client:GetClientGroupUnit(), 60, 30 )
self.CargoGroupName = CargoGroup:GetName()
self:T( 'self.CargoGroupName = ' .. self.CargoGroupName )
--self.CargoSpawn:FromCarrier( Client:GetClientGroupDCSUnit(), TargetZoneName, self.CargoGroupName )
self.CargoSpawn:SpawnFromUnit( Client:GetClientGroupUnit(), self.CargoGroupName ):RouteToZone( ZONE:New( TargetZoneName ), true )
CargoGroup:RouteToZone( ZONE:New( TargetZoneName ), true )
self:StatusUnLoaded()