PrepTACANForUnit
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | PrepTACANForUnit | |
| Function Description: | Builds an ActivateBeacon command (or task) that binds a TACAN beacon to the specified unit. | |
| File Location: | cmm.DCSFunctions.lua | |
| Syntax: | CMM.PrepTACANForUnit( number TACtype , boolean AA , string callsign , string: modeChannel , number channel , number sys ,number UnitID , number freq ) | |
| Return Value: | table | |
| Parameters: | Name | Description |
| TACtype | Beacon type. Valid values are the constants defined in BEACON.Type (e.g. BEACON.Type.TACAN). | |
| AA | If true, enables Air 2 Air mode for the TACAN beacon. Defaults to false. | |
| callsign | Callsign that will be displayed on the aircraft’s HUD/airborne radio. | |
| modeChannel | Either "x" or "y", indicating the mode channel used by the beacon. | |
| channel | TACAN channel (1‑126). Defaults to 71. | |
| sys | System identifier – one of the constants in BEACON.System (AA_X, AA_Y, TANKER_X, TANKER_Y). | |
| UnitID | The unit ID that should receive the beacon configuration. | |
| freq | Frequency calculated by TACANToFrequency(channel, modeChannel); this is the radio frequency on which the TACAN squawks. | |
| Example: | local cmd = CMM.PrepTACANForUnit(BEACON.Type.TACAN, true, "EagleOne", "x", 42, BEACON.System.AA_X, unit:getID(), TACANToFrequency(42,"x")) | |
| Example Description: | Sets up an Air 2 Air TACAN beacon on the specified unit with callsign "EagleOne" operating on channel 42 (mode X). | |
| Related Functions: | ||
| Notes: | ||