So I was trying to make weapons and name the via an Instance variable(kinda like an id). But it worked when it was on id 0 while it didn't work when it was at the correct id. Pls help!
Here is a demo I made a long time ago. It's not very good, but you may get some useful ideas from it:
And this example shows how to switch between primary and secondary weapons:
Develop games in your browser. Powerful, performant & highly capable.