I am looking into doing event about like the pvp stress test they did and I have players spawning in with a M4A1 and mags but it is a bare bones M4, how do a spawn it with attachments? I am doing it through the init file using notepad++ and this is what it looks like:
itemEnt = player.GetInventory().CreateInInventory("M4A1");
itemBs = ItemBase.Cast(itemEnt);
itemEnt = player.GetInventory().CreateInInventory("Mag\_STANAG\_30Rnd");
itemBs = ItemBase.Cast(itemEnt);