Convert airfields and ports multi-unit to singe-unit(saving loadout and missions)) (Full Version)

All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion



Message


DmitriyBlade -> Convert airfields and ports multi-unit to singe-unit(saving loadout and missions)) (12/29/2021 9:07:04 PM)

Nothing found on google

Anyone have LUA script
which converts
each airbase and port facility to single unit?
(saving units and their missions accordingly)




LettuceTurnipTheBeet -> RE: Convert airfields and ports multi-unit to singe-unit(saving loadout and missions)) (1/1/2022 11:15:45 PM)

Here is a somewhat naive script that kinda does what you asked for. However, a multi-component airfield AFAIK may have any number of runways and other elements which can not always be accurately represented by the selection of single-unit variants in the DB. Therefore, this script simply adds a generic 2600m airstrip anywhere. If you want more accurate representations you can write some extra code that extracts the length of a given runway to select a comparable single-unit equivalent from the DB instead. The script also doesn't take into account any aircraft that might be flying during conversion, but I think in most cases the game will take care of that and select a suitable new base for them.




LettuceTurnipTheBeet -> RE: Convert airfields and ports multi-unit to singe-unit(saving loadout and missions)) (1/3/2022 6:55:22 PM)

[UPDATE] Fixed an issue where it couldn't handle missing loadouts.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.859375