Jump to content

CheckUnit

From CMM Wiki
Return to CMM Command Reference
Environment: Mission Scripting
Function: CheckUnit
Function Description: Returns whether the unit is alive, exists, and has been activated.
File Location: cmm.DCSFunctions.lua
Syntax: CMM.CheckUnit( table or string Unt )
Return Value: boolean
Parameters: Name Description
UntUnit table or string
Example: CMM.CheckUnit(playerUnit)
Example Description: Returns true if the unit is alive, exists, and is active; otherwise returns false. Works with either a unit table or unit name string.
Related Functions:
Notes: