Background:
Currently the game spawns other units from dead units, or from items using the "spawnUnit" and "spawnUnitFaction" commands. Examples:
units:
- type: STR_ZOMBIE
spawnUnit: STR_ZOMBIE_CRAWLER
items:
- type: STR_BURROWED_ZERG_ZERGLING
spawnUnit: STR_ZERG_ZERGLING
spawnUnitFaction: 1
But it's currently limited to only one unit at the time.
Request:
I'd like to see if it's possible to implement the following feature: Specify the quantity of spawned units. Example:
units:
- type: STR_MEGAWORM #2x2 unit
spawnUnit: STR_MICROWORM
spawnUnitQty: 4
items:
- type: STR_COCOON_ZERG_ZERGLINGS
spawnUnit: STR_ZERG_ZERGLING
spawnUnitFaction: 1
spawnUnitQty: 2
I know there are current workarounds such as activated spawner grenades in backpacks and such, but this may be a more direct and "clean" way to implement this feature.
I don't know if it's even possible due to code limitations. But if it is, can you implement it? If not both, at least the case of a 2x2 unit to "die" leaving behind more than one.