Jump to content

SetUnitTACAN

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (SetUnitTACAN – created via PowerShell script (2025-11-11T21:12:00Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
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
UnitNameThe name of the unit whose TACAN beacon will be set (e.g., "Arco11").
callsignThe TACAN callsign to assign (e.g., "ARC").
modeChannelMode indicator, either "X" or "Y".
channelTACAN channel number (1–127).
AAtrue 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: