Jump to content

CheckUnit

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (CheckUnit – created via PowerShell script (2025-11-11T21:12:10Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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: