Code: { Scenario.AddWeapon, "ID", count, level, rarity }

The function to give weapons is not used by the game so there is no example that I could use to better understand how the function works.I suppose I could blind test it and see if I get lucky,Like,Or,I don't think the two will work.However there is another option, there's a hidden resource called shungite that can raise a weapon's rarity level.