WeaponRangeScheduledTaskFunction
Appearance
| 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: | ||
}