I have a strange problem that I can't solve for the life of me.
Basically what the code does is that when you press a certain it will check if the your weapon doesn't equal the gun you want to switch to and that the disable weapon switching is under or equal to 0, if its all well it will play a sound and switch to the gun and set the cool down.
The problem that I can't figure out is that if the weapon you want to switch to is above 2 it just doesn't work, for example this is the pistol...
Weapon switching problem
Basically what the code does is that when you press a certain it will check if the your weapon doesn't equal the gun you want to switch to and that the disable weapon switching is under or equal to 0, if its all well it will play a sound and switch to the gun and set the cool down.
The problem that I can't figure out is that if the weapon you want to switch to is above 2 it just doesn't work, for example this is the pistol...
Weapon switching problem