diff --git a/Moose/Cargo.lua b/Moose/Cargo.lua index e9d815870..c9e09135d 100644 --- a/Moose/Cargo.lua +++ b/Moose/Cargo.lua @@ -517,7 +517,7 @@ function CARGO_GROUP:Spawn( Client ) self.CargoGroupName = self.CargoSpawn:SpawnFromUnit( self.CargoZone:GetCargoHostUnit(), 60, 30, 1 ):GetName() else --- ReSpawn the Cargo in the CargoZone without a host ... - self.CargoGroupName = self.CargoSpawn:SpawnInZone( self.CargoZone, 1 ):GetName() + self.CargoGroupName = self.CargoSpawn:SpawnInZone( self.CargoZone, true, 1 ):GetName() end self:StatusNone() end diff --git a/Moose/Spawn.lua b/Moose/Spawn.lua index 9729c1e82..d89eb821d 100644 --- a/Moose/Spawn.lua +++ b/Moose/Spawn.lua @@ -638,9 +638,11 @@ function SPAWN:SpawnFromUnit( HostUnit, OuterRadius, InnerRadius, SpawnIndex ) return nil end ---- Will spawn a Group within a given @{ZONE}. +--- Will spawn a Group within a given @{Zone#ZONE}. +-- Once the group is spawned within the zone, it will continue on its route. +-- The first waypoint (where the group is spawned) is replaced with the zone coordinates. -- @param #SPAWN self --- @param #ZONE Zone The zone where the group is to be spawned. +-- @param Zone#ZONE Zone The zone where the group is to be spawned. -- @param #number ZoneRandomize (Optional) Set to true if you want to randomize the starting point in the zone. -- @param #number SpawnIndex (Optional) The index which group to spawn within the given zone. -- @return Group#GROUP that was spawned. @@ -689,6 +691,7 @@ end + --- Will spawn a plane group in uncontrolled mode... -- This will be similar to the uncontrolled flag setting in the ME. -- @return #SPAWN self diff --git a/Test Missions/Moose_Test_SPAWN/MOOSE_Test_SPAWN.miz b/Test Missions/Moose_Test_SPAWN/MOOSE_Test_SPAWN.miz index 56f294d0a..ea146f2c5 100644 Binary files a/Test Missions/Moose_Test_SPAWN/MOOSE_Test_SPAWN.miz and b/Test Missions/Moose_Test_SPAWN/MOOSE_Test_SPAWN.miz differ