SpawnSupportAircraft
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | SpawnSupportAircraft | |
| Function Description: | Spawns support aircraft at a specified airbase based on a definition table. | |
| File Location: | cmm.AirSupportFunctions.lua | |
| Syntax: | CMM.SpawnSupportAircraft( table argTable ) | |
| Return Value: | nil | |
| Parameters: | Name | Description |
| argTable | UnitSpawnTable – <argTable>[1] = Airbase ID or name; <argTable>[2] = table of aircraft definitions keyed by aircraft name. | |
| Example: | CMM.SpawnSupportAircraft({ "Akrotiri", { ["E3A"] = { AircraftType = "E-3A", TailNumber = "001" } } }) | |
| Example Description: | Spawns an E‑3A at Akrotiri. If the airbase name is omitted, the function uses the current mission phase's default support airbase. It generates tail numbers for aircraft without one and applies any specified livery or additional properties. | |
| Related Functions: | ||
| Notes: | ||