hi there !very coolman
did you make this work with an array ? can you explain to me how ?
im triyng to make a weapon database like you that i can just select the weapons from, but i cant see how
I have the array setup as a 10x4, but I'll only go over the first 2 y values as they're the more importaint for weapon selection:
Cx1 = Weapon Name (Helps control actions when firing, like what bullets to use and how many, how much ammo to reduce, etc.)
Cx2 = Weapon Ammo (How much ammo is left in inventory. You can use global variables if you want to have a common type of ammo to be used by different guns, however.)
The 'C' stands for your current weapon, which you can increase or decrease by using the mouse-wheel. Doing this picks a different weapon in the array, first making sure the weapon you picked isn't "0" and ammo is greater than 0 (Otherwise skip to the next weapon and check that) and presto!
If you need more help let me know, I'll do my best to explain it further. ;)