I have 4 weapons that include Pistol, Shotgun, Cross Bow and Flame thrower. Once I collect one of these weapons it begins the scroll wheel action adding one to a global variable called Switchweapons and if Switchweapos variable go's beyond 4 it resets back to 0 and if it go's below 0 it sets back to 4. The issue that I am having is it adds to this variable to switch weapons but how can I make it not switch if I don't have the weapon?
basically I only want to be able to scroll to 3 if i only have collected the flame thrower and only change to pistol when I scroll, so on and so forth .
pistol will always be active.