Jump to content

IsUnitByName

From CMM Wiki
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: