Jump to content

InitializeScheduledCleanZone

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (InitializeScheduledCleanZone – created via PowerShell script (2025-11-11T21:12:02Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: InitializeScheduledCleanZone
Function Description: Initializes scheduled zone cleaning for a list of zones, setting the interval and optional silence.
File Location: cmm.DCSFunctions.lua
Syntax: CMM.InitializeScheduledCleanZone( table TBL , number CleanZoneTime , boolean or nil: Silent )
Return Value:
Parameters: Name Description
TBL{<string>} – list of zone names to schedule. Each entry should be the name of a zone defined in the mission editor.
CleanZoneTimeinterval in seconds between cleans (defaults to 1800 if not a number).
SilentIf true, no informational messages are printed (defaults to false).
Example: CMM.InitializeScheduledCleanZone({"DebrisArea","Hangar1"}, 300, true)
Example Description: Schedules cleaning of "DebrisArea" and "Hangar1" every 5 minutes without logging.
Related Functions:
Notes: