Here's the plan, and please correct me if I am way off base. I want to either modify or add on to the following LUA commands where the bold and underline are. I would like to have the loadout randomly selected from the Aircraft's available loadouts and the quantity randomly selected between 5-15.
--Adding to Munitions Storage at base in bunkers--
ScenEdit_FillMagsForLoadout('{unit='That Base', loadoutid=45162, quantity=12}')
**This would be based on a single type of airctaft stationed at the base. If there is a way to use this for multiple different types of aircraft..even better**
--Adding Loadout to AIrcrtaft--
for i=1,6 do ScenEdit_AddUnit({type = 'Aircraft', name = 'HAMMER "..i , dbid = 1986, loadoutid = 2755, side = 'NATO', base = 'That Base', proficiency=4}) end
**Additional if there would be a way to use this on different ypes of airctraft stationed at the base, that would be awesome as well**
Any help would be greatly appreciated
