Jump to content

IsUnit

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