I was wondering if it is possible to add setUnitLoadout (getUnitLoadout) in the following line
_FlagWest addAction ["Spawn Squad Leader", {"B_Soldier_SL_F" createUnit [getpos FlagWest, CreateGroup West];}];
to copy the loadout of a named unit in the scenario.
Should be an easy solution for a newbie like me.
===============================================
This one seems to work
this addAction ["Arruola Cecchino Ricognitore", {"B_RangeMaster_F" createUnit [getpos newunits, group player, "unit1 = this"]; unit1 setUnitLoadout (getUnitLoadout ai12)}];