CheckUnit
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | CheckUnit | |
| Function Description: | Returns whether the unit is alive, exists, and has been activated. | |
| File Location: | cmm.DCSFunctions.lua | |
| Syntax: | CMM.CheckUnit( table or string Unt ) | |
| Return Value: | boolean | |
| Parameters: | Name | Description |
| Unt | Unit table or string | |
| Example: | CMM.CheckUnit(playerUnit) | |
| Example Description: | Returns true if the unit is alive, exists, and is active; otherwise returns false. Works with either a unit table or unit name string. | |
| Related Functions: | ||
| Notes: | ||