weapon switching

i’ve been making an fps and i needed to know how to switch between weapons, i’ve seen the tutorials on youtube but i don’t understand. could someone explain it to me.

There are different ways of doing it. You probably could have an int property. Different numbers would corespond to different weapons. Then, you could have some logic bricks so that you can use whichever keys you want to change the int value. Then, have property sensors set to sense different values of the property and have all of the logic for your different weapons branching off from there.

It would take lots of work to have smooth transitions and animations when you switch between weapons (and it would probably require python). So I suggest you probably just use actuators to hide all of the weapons except the one selected. It will probably take lots of logic bricks