I have a script where I have many variables for different guns. There are
UMP45Ammo = false
UMP45Fov = false
AKMAmmo = false
AKMFov = false
etc I got like 12 guns and more variables
Then I have a global variable called cgun
My problem is when a button is clicked I wanna change the value of selected guns specific property(like ammo to true)
So I tried something like
cgun+Ammo = true and I tried even making new local variable
mgun1 = cgun+Ammo
mgun1 = true
etc. How can I do this or is it impossible?