Jump to content

WeaponRangeScheduledTaskFunction

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (WeaponRangeScheduledTaskFunction – created via PowerShell script (2025-11-11T21:12:43Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: WeaponRangeScheduledTaskFunction
Function Description: Executes a scheduled task to monitor and manage unit counts in a specified zone, replenishes units if below a threshold, cleans the zone, and schedules recurring checks with optional silence and one-time execution.
File Location: cmm.spawnFunctions.lua
Syntax: CMM.WeaponRangeScheduledTaskFunction( table argTable )
Return Value:
Parameters: Name Description
argTable{ZoneName <string>, Country <string>, UnitTypeTable <TBL>, UnitLimit <number>, Silent <boolean>, RunOnce <boolean>
Example: CMM.WeaponRangeScheduledTaskFunction({"Weapons-Range-01", "REDFOR", {"REDFOR.UNARMED", "REDFOR.FUEL", "REDFOR.AMMO", "REDFOR.ENGI"}, 100, false, false})
Example Description: Triggers a weapon range management task for the "Weapons-Range-01" zone, replenishes units when below 25% of the limit, cleans the zone, and schedules the next check after 300 seconds with notifications enabled.
Related Functions:
Notes:

}