SpawnZoneGroups
Appearance
| 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 | |
}