I’m currently teaching myself how to go about making a gun system. So far I’ve been able to make pick up logic, make different weapons shoot, do damage, have different fire rates, and have a basic weapon swap system working using arrays. But I’ve come across a roadblock and I can’t seem to find a workaround for it yet. I’m trying to implement a “mod” feature where each gun has their own respective modification that the player can use on it.
For example: a pistol has mods like dual wielding and explosive rounds whereas the assault rifle does not. But the Assault rifle has mods like an advanced scope and automatic shotgun rounds but the pistol does not.
For how the player will go about obtaining these mods, I’ll be reusing the pick up logic I already have and I figured as far as storing goes I could use another array system for that? I’m not 100% on if that’s the right way to go about it or not. But I want the players to be able to select the mod they want for the current weapon they’re holding and then utilize the mod upon triggering.
What would be some good ways to go about doing this?
(Using 5.5.4 if that’s any help)