Jump to content

SetupCarrier

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (SetupCarrier – created via PowerShell script (2025-11-11T21:11:59Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: SetupCarrier
Function Description: Configures the radio and navigation settings of an aircraft carrier unit. The function activates the specified ACLS (Airborne Command & Logistics System) profile, sets up a Link‑4 frequency, and calculates the TACAN frequency for the given channel and mode. It expects the carrier to be a valid Unit object; otherwise it logs an error and exits.
File Location: cmm.DCSFunctions.lua
Syntax: CMM.SetupCarrier( string unitName , number freq , string radioMod , number acls , string aclsN , number link4 ,string link4N , number tacanN , string tacanXY )
Return Value:
Parameters: Name Description
unitNameThe name of the carrier unit to configure (e.g., "USS Abraham Lincoln").
freqThe base radio frequency in MHz (unused in current implementation but kept for future use).
radioModRadio mode identifier ("AM", "FM", etc.) – currently not used directly.
aclsACLS profile number to activate on the carrier.
aclsNHuman‑readable name of the ACLS profile (defaults to "UNKNOWN" if nil).
link4Link‑4 frequency in MHz (defaults to 11 MHz if nil).
link4NName for the Link‑4 channel (defaults to "UNKNOWN").
tacanNTACAN channel number (1–127) used to compute the actual frequency.
tacanXYTACAN mode, either "X" or "Y" (defaults to "X").
Example: CMM.SetupCarrier("USS Abraham Lincoln",300,"AM",11,"ACLS-Alpha",77,"Link4-Alpha",71,"X")
Example Description: Demonstrates setting up the carrier "USS Abraham Lincoln" with ACLS profile 11, Link‑4 at 77 MHz, and TACAN channel 71 in mode "X".
Related Functions:
Notes: