Jump to content

UnitNotification

From CMM Wiki
Return to CMM Command Reference
Environment: Mission Scripting
Function: UnitNotification
Function Description: Sends a text message to either a single player or a specific unit in multiplayer. If the object is a unit, it determines whether to broadcast globally (single‑player) or only to that unit (multiplayer). It logs an error if the object type is unsupported. The function accepts a table containing:
File Location: cmm.DCSFunctions.lua
Syntax: CMM.UnitNotification( table argTable )
Return Value:
Parameters: Name Description
argTable{messageTxT <string>, clearTxT <boolean>(optional) , Obj <TBL> , TimeTxT <number>
Example: CMM.UnitNotification{"Test message", false, Unit.getByName("DEV-HOTSLOT-F18c #1"), 60}
Example Description: Demonstrates sending a 60‑second notification to the unit "DEV‑HOTSLOT‑F18c #1" without clearing the view.
Related Functions:
Notes:

}