Jump to content

IsUnit

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (IsUnit – created via PowerShell script (2025-11-11T21:12:04Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: IsUnit
Function Description: Checks whether the supplied table represents an active DCS unit.
File Location: cmm.DCSFunctions.lua
Syntax: CMM.IsUnit( table Unt )
Return Value:
Parameters: Name Description
UntUnit Object table
Example: local ok = CMM.IsUnit(Unit.getByName("ConvoyGroup1-01"))
Example Description: Returns true if the argument is a unit and it is currently active; otherwise false.
Related Functions:
Notes: