I wanted to create a mechanic where a player can stand in one spot for a few seconds and a flag will rise up a flagpole, once the flag reaches the top, a bunch of loot will dop at the base of the flagpole. I used a variation of the door rise blueprint we learned in the first semester to have the flag rise.
For the ground loot, I wanted the loot to generate the loot type and rarity randomly using an array, similar to how loot is spawned in the game. Rarity is defined by color: Blue, Green, Purple, Gold, in this blueprint, they are not weighted so there is an equal chance of each showing up. There are four ammo types, Rifle, Pistol, Shotgun and Health.