Add a Aircraft loadouts to base

All discussions & material related to Command's Lua interface

Moderators: RoryAndersonCDT, michaelm75au, angster, MOD_Command

Post Reply
obrien979
Posts: 33
Joined: Fri May 18, 2018 2:10 pm
Location: Germany

Add a Aircraft loadouts to base

Post 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
V/R,
Brandon "OB" OBrien
Post Reply

Return to “Lua Legion”