Jump to content

PrepTACANForUnit

From CMM Wiki
Revision as of 10:11, 11 November 2025 by Ozdeadmeat (talk | contribs) (PrepTACANForUnit – created via PowerShell script (2025-11-11T21:11:57Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
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
TACtypeBeacon type. Valid values are the constants defined in BEACON.Type (e.g. BEACON.Type.TACAN).
AAIf true, enables Air 2 Air mode for the TACAN beacon. Defaults to false.
callsignCallsign that will be displayed on the aircraft’s HUD/airborne radio.
modeChannelEither "x" or "y", indicating the mode channel used by the beacon.
channelTACAN channel (1‑126). Defaults to 71.
sysSystem identifier – one of the constants in BEACON.System (AA_X, AA_Y, TANKER_X, TANKER_Y).
UnitIDThe unit ID that should receive the beacon configuration.
freqFrequency 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: