Jump to content

OutTextForUnit

From CMM Wiki
Return to CMM Command Reference
Environment: Mission Scripting
Function: outTextForUnit
Function Description: CMM varient of trigger.action.outTextForUnit that uses an argTable
File Location: cmm.DCSFunctions.lua
Syntax: CMM.outTextForUnit( table argTable )
Return Value: nil
Parameters: Name Description
argTableTable of arguments, argTable[1] = unitID (number) , argTable[2] = text (string), argTable[2] = displayTime (number)[DEFAULT: 5], argTable[4] = clearView (boolean)[DEFAULT: false], argTable[5] = writelog (boolean)[DEFAULT: true]
Example: CMM.outTextForUnit({1000273,"Hello World!", 10, true true})
Example Description: This function will put the Hello World! text up for players in unitID#1000273 for 10 seconds. It will clear all other text and also write Hello World! to the log
Related Functions:
Notes: