I'm trying to make a top down game in which the player starts unarmed and picks up a gun. and i want it to be able to cycle back and fourth. and so when ever he picks up another gun you will be able to cycle between all 3. How would i go about doing that?

Example.

There are 3 Weapons in the game

You start with a Weapon ID Of 0

Then You Pickup a Weapon with the ID of 1 Then you are only able to cycle between those 2

Until

You Pickup a 3rd weapon. Then You Will be able to cycle through all 3 weapons.

You could say use an array. i already have one but if i cycle through it will give me all weapons.

Create a variable called WeaponFrame and create too a object called weapon go to the event sheet and set it: every tick - Weapon set frame WeaponFrame,and forever if you go change the weapon change the variable for example, When I press 1 - WeaponFrame set 1I want have helped(Sorry my english i'm not american)