SetAirbaseAircraft
Appearance
| 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 |
| AB | An Airbase Object | |
| Aircraft | A list of aircraft type strings to set at the airbase (e.g., {"A-10C", "F-16C_50"}). | |
| Quantity | The quantity of each aircraft type to set at the airbase (default is 0 if not specified). | |
| ClearUnlisted | If 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: | ||