Jump to content

SpawnGroundUnitInZoneScheduledTaskFunction

From CMM Wiki
Return to CMM Command Reference
Environment: Mission Scripting
Function: SpawnGroundUnitInZoneScheduledTaskFunction
Function Description: Scheduled task function that spawns ground units in a specified zone using a provided unit type table, country, and optional limits and road constraints. It validates input parameters and delegates execution to CMM.SpawnGroundUnitInZone.
File Location: cmm.spawnFunctions.lua
Syntax: CMM.SpawnGroundUnitInZoneScheduledTaskFunction( table argTable )
Return Value: nil
Parameters: Name Description
argTable{ZoneName <string>, Country <number>, UnitTypeTable <TBL>, UnitLimit <number>, ForceRoad <nil
Example: CMM.SpawnGroundUnitInZoneScheduledTaskFunction({"Area-10", 1, {"T-72", "BTR-80"}, 100, true})
Example Description: Schedules the spawning of up to 100 units in "Area-10" using T-72 and BTR-80 units, assigned to BLUFOR, with all spawns forced to occur on roads.
Related Functions:
Notes: