I have a function inside each one, that sets a value to true when I equip, and false when I de-equip it, but the weapons still shoot more than one rays when there are multiple equipped. If i have no weapons equipped, they don't fire. But if I have 2, each weapon fires 2 rays. Any help would be appreciated.

3 comments

0

Add a boolean value inside player named something. When you equip one gun, set that value to true and when you dequip it, set that value to false. Add a check to see if boolean is false before allowing to equip.

0

yes but i already have a value inside of the script, so shouldn't that function the same way?

0

and also i did the boolean it does not work.