Jump to content

IsUnitByName

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (IsUnitByName – 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: IsUnitByName
Function Description: Determines whether a unit with the given name exists and is currently active in the mission.
File Location: cmm.DCSFunctions.lua
Syntax: CMM.IsUnitByName( string UntName )
Return Value:
Parameters: Name Description
UntNameUnitName string
Example: local exists = CMM.IsUnitByName("ConvoyGroup1-01")
Example Description: Returns true if a unit named "ConvoyGroup1-01" is present and active; otherwise false.
Related Functions:
Notes: