Page 1 of 1

Add a Aircraft loadouts to base

Posted: Wed May 15, 2019 1:13 pm
by obrien979
As the title suggests, looking for guidance on weather or not it is feasible (or doable) to create a LUA script that can add a set amount of each loadout that an aircraft, which is assigned to that base, is designed for. I know there is this lua command:

Code: Select all

ScenEdit_FillMagsForLoadout({unit="Abha", loadoutid=45162, quantity=12})

I am wondering if it is possible to have this code repeat and fill in the loadoutid based on the specified aircraft.

Thank You