Jump to content

SetAirbaseAircraft

From CMM Wiki
Revision as of 19:02, 31 December 2025 by Ozdeadmeat (talk | contribs) (SetAirbaseAircraft – created via PowerShell script (2026-01-01T06:02:44Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: SetAirbaseAircraft
Function Description:
File Location: cmm.AirBaseFunctions.lua
Syntax: CMM.SetAirbaseAircraft( table AB , table Aircraft , number or nil Quantity , boolean or nil ClearUnlisted )
Return Value: nil
Parameters: Name Description
ABAn Airbase Object
AircraftA list of aircraft type strings to set at the airbase (e.g., {"A-10C", "F-16C_50"}).
QuantityThe quantity of each aircraft type to set at the airbase (default is 0 if not specified).
ClearUnlistedIf true, clears all existing aircraft from the airbase before setting the new list. (Default:False)
Example: CMM.SetAirbaseAircraft(Airbase.getByName("Kutasi"),{"A-10C", "F-16C_50"}, 33, true)
Example Description: Sets the aircraft inventory of the Kutasi airbase to have 33 A-10C and 33 F-16C_50 aircraft, clearing any other aircraft types previously present.
Related Functions:
Notes: