How to set Actor Components to other components of a common type?

I’m not sure if that’s really possible since the components are created during construction time, but I could be wrong.

One way to achieve that is to create the guns as actors, and add to the tank class the base gun mod as a class type variable to be spawned. This way you can change the variable class to inherited ones.

This solution is similar to the one used in ShooterGame project from Epic for the weapon. (I extended this functionality to also be able to use grenades)

Anyway, I’d also be interested in the actor component solution. Looking forward for further answers.

Best of luck!