hi everyone I have been working on a top down action game for a last few weeks I originally started the game years ago, but was not pleased with the work I was doing so abandoned the project at the time I had no idea how to implement arrays so instead I just had the player start with 4 weapons which you would change with a super simple code which changed a global variable whenever you pressed Q or E
I allso had a reload weapon script which someone on the forum kindly help me with
here is my code for fireing the handgun and reloading
so yesterday I watched this tutorial on arrays
then I created this new code for weapon change and for when you pick a gun for the first time it creates a new line in the array
lightshot
but now I can't fire my gun when I pick it up I thought if I just replace the condition weapon 1 with ar_weapons = current value "Hgun" it would work