MISSION.Timer
Appearance
| 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: | ||