SetUnitTACAN
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | SetUnitTACAN | |
| Function Description: | Configures the TACAN beacon of an individual unit. The function verifies that UnitName refers to a valid unit and that the provided arguments are of the correct types (callsign and modeChannel must be strings, channel a number, and AA a boolean). If all checks pass, it builds a TACAN command using the appropriate system ID (tanker or AA mode) and activates the beacon on the unit. | |
| File Location: | cmm.DCSFunctions.lua | |
| Syntax: | CMM.SetUnitTACAN( string UnitName , string callsign , string modeChannel , number channel , boolean AA ) | |
| Return Value: | ||
| Parameters: | Name | Description |
| UnitName | The name of the unit whose TACAN beacon will be set (e.g., "Arco11"). | |
| callsign | The TACAN callsign to assign (e.g., "ARC"). | |
| modeChannel | Mode indicator, either "X" or "Y". | |
| channel | TACAN channel number (1–127). | |
| AA | true for an aircraft‑assigned beacon, false for a tanker‑style beacon. | |
| Example: | CMM.SetUnitTACAN("Arco11","ARC","Y",64,false) | |
| Example Description: | Demonstrates setting the TACAN beacon on unit "Arco11" with callsign "ARC", mode "Y", channel 64, and using a tanker‑style configuration (AA = false). | |
| Related Functions: | ||
| Notes: | ||