mirror of
https://github.com/iTracerFacer/Moose_DualCoalitionZoneCapture.git
synced 2025-12-03 04:12:31 +00:00
Changed SpawnInZone(chosenZone, false) to SpawnInZone(chosenZone, true). Units will now spawn at random locations within their zone instead of clustering at the center.
This commit is contained in:
parent
827d999137
commit
c42bf0451f
@ -978,7 +978,7 @@ local function ScheduleSpawner(spawnObject, getZonesFn, warehouses, baseFrequenc
|
||||
local friendlyZones = getZonesFn()
|
||||
if #friendlyZones > 0 then
|
||||
local chosenZone = friendlyZones[math.random(#friendlyZones)]
|
||||
local spawnedGroup = spawnObject:SpawnInZone(chosenZone, false)
|
||||
local spawnedGroup = spawnObject:SpawnInZone(chosenZone, true)
|
||||
|
||||
if spawnedGroup then
|
||||
env.info(string.format("[DGB PLUGIN] Spawned %s in zone %s. Task assignment will occur on next cycle.",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user