Weapon swapping

Does anyone here have a good idea for how you could make a weapon swapping system?

  • I have damage and fireRate that needs to be different for each gun.
  • And I need to be able to pick up guns.

Thx. :slight_smile:

Well… First you are better implementing an inventory system and having the weapons work off of that, depending on the type of game you intend on making… If it is an FPS like CoD, then the system is pretty self explanitory. Heck, if you wanted to, you could have it would off of a fixed Enum/Array, but if you want to make something like procedural weapons or you want to transfer stats such as the bullet-count, then you would have to do something involving scripts on the actual weapons dropped. It really is something that you could sort out your self. Google some tutorials about it into youtube. (Example: Unity3D Tutorial #98 [ Weapon Switching ] - YouTube)