Jump to content

MISSION.Timer

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (MISSION.Timer – created via PowerShell script (2025-11-11T21:12:01Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: MISSION.Timer
Function Description: Sends a timer notification to all players indicating how much time remains before the mission ends, formatting the remaining time in hours, minutes or seconds and playing a corresponding sound cue when specific thresholds are reached.
File Location: cmm.DCSFunctions.lua
Syntax: CMM.MISSION.Timer( table TimeLeft )
Return Value:
Parameters: Name Description
TimeLeft{<timeInSeconds>} -- timeInSeconds – number of seconds left for the mission
Example: CMM.MISSION.TimeLimit = 3600; CMM.MissionTimer({1800})
Example Description: Demonstrates sending a notification that the mission will end in 30 minutes.
Related Functions:
Notes: