IsUnit
Appearance
| 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 |
| Unt | Unit 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: | ||