Better way to approach weapon system data

Hi,

Perhaps you can create a ‘Weapons Manager’ actor component that could be added to your player, or even potentially AI enemies.

How I would imagine this Weapon Manager would work is the following:

  • It can track all the weapons the player currently has in their “Inventory”.
  • It would be responsible for spawning/destroying weapons when switching between weapons in the inventory.
  • It would be responsible for tracking weapon specific data such as current ammo/max ammo, and potentially any other information.

Making this a component would allow it to be more universally available to other classes, such as AI; and I believe it is at least worth investigating. I hope this idea is useful, and good luck :slight_smile: