Jump to content

SpawnZoneGroups

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (SpawnZoneGroups – created via PowerShell script (2025-11-11T21:12:42Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: SpawnZoneGroups
Function Description: Spawns unit groups into a specified zone based on provided configuration, including zone name, country, group tables, capacity, direction arc, and optional settings like silence or disperse behavior.
File Location: cmm.spawnFunctions.lua
Syntax: CMM.SpawnZoneGroups( table argTbl )
Return Value:
Parameters: Name Description
argTbl{ZoneName <string>, Country <string>, GroupTables <TBL>, UnitCap <number>, DirectionArc <TBL>, Silent <boolean>, GroupOptions <TBL>
Example: CMM.SpawnZoneGroups("WEAPONS-RANGE-02", CountryID, {GroupTypeTable1, GroupTypeTable2,GroupTypeTable3},100)
Example Description: Spawns unit groups into the WEAPONS-RANGE-02 zone for the USA with a capacity of 100 units, within a full 360-degree arc, without notifying players, and with disperse on attack enabled.
Related Functions:
Notes: --TODO Currently incomplete, code review required

}