mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Fixed DeployTask
The GroupName must be the new Spawned name.
This commit is contained in:
parent
e396353cc7
commit
dd5d5ed8fa
@ -634,11 +634,13 @@ function CARGO_GROUP:UnLoad( Client, TargetZoneName )
|
|||||||
self:T()
|
self:T()
|
||||||
|
|
||||||
self:T( 'self.CargoName = ' .. self.CargoName )
|
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:T( 'self.CargoGroupName = ' .. self.CargoGroupName )
|
||||||
|
|
||||||
--self.CargoSpawn:FromCarrier( Client:GetClientGroupDCSUnit(), TargetZoneName, self.CargoGroupName )
|
CargoGroup:RouteToZone( ZONE:New( TargetZoneName ), true )
|
||||||
|
|
||||||
self.CargoSpawn:SpawnFromUnit( Client:GetClientGroupUnit(), self.CargoGroupName ):RouteToZone( ZONE:New( TargetZoneName ), true )
|
|
||||||
|
|
||||||
self:StatusUnLoaded()
|
self:StatusUnLoaded()
|
||||||
|
|
||||||
|
|||||||
@ -5213,11 +5213,13 @@ function CARGO_GROUP:UnLoad( Client, TargetZoneName )
|
|||||||
self:T()
|
self:T()
|
||||||
|
|
||||||
self:T( 'self.CargoName = ' .. self.CargoName )
|
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:T( 'self.CargoGroupName = ' .. self.CargoGroupName )
|
||||||
|
|
||||||
--self.CargoSpawn:FromCarrier( Client:GetClientGroupDCSUnit(), TargetZoneName, self.CargoGroupName )
|
CargoGroup:RouteToZone( ZONE:New( TargetZoneName ), true )
|
||||||
|
|
||||||
self.CargoSpawn:SpawnFromUnit( Client:GetClientGroupUnit(), self.CargoGroupName ):RouteToZone( ZONE:New( TargetZoneName ), true )
|
|
||||||
|
|
||||||
self:StatusUnLoaded()
|
self:StatusUnLoaded()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user