SpawnGroundGroup
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | SpawnGroundGroup | |
| Function Description: | Spawns a ground unit group with specified configuration including group name, unit types, country, rules of engagement, dispersion settings, and alarm state. The function supports optional parameters such as spawn range, heading range, AI behavior, and visibility settings. | |
| File Location: | cmm.spawnFunctions.lua | |
| Syntax: | CMM.SpawnGroundGroup( table argTable ) | |
| Return Value: | table,table or nil | |
| Parameters: | Name | Description |
| argTable | {GroupName <string>, category <string>, country <number>, ROE <number>, DOA <number>, alarmState <TBL>} – Group configuration table where GroupName defines the group name, category specifies the unit type, country sets the owning nation, ROE defines rules of engagement, DOA sets dispersion on attack time in seconds, and alarmState defines the alarm state range. | |
| Example: | CMM.SpawnGroundGroup({"NewGroupOfDOOM", "Unit.Category.GROUND_UNIT", 81, AI.Option.Ground.val.ROE.RETURN_FIRE, 120}) | |
| Example Description: | Spawns a group named "NewGroupOfDOOM" with ground units, assigned to country 81, using a ROE of RETURN_FIRE, disperse on attack after 120 seconds, and sets alarm state to 110–135 range. | |
| Related Functions: | ||
| Notes: | ||