How To Set Actor Components To Be Other Components?

Now, when you create your GunMod don’t create a GunMod object, create directly a child class

But in my parent class of Generic Tank I do create a Gun Mod of type Gun Mod because it has to be something. Then in child classes of Generic Tank, they change what Gun Mod is whether it be Cannon or something else derived from Gun Mod.

My Generic Tank already has these properties defined.

Then my Medium Prototype tank inherits them.

And I want to change what the value of Gun Mod is. I don’t want it to be a reference of Gun Mod anymore at this point.

Like, what if I have a float in Generic Tank, weight for example. In base tank that can be defined as 0, but others inheriting this can change it based on what they are. How is that done with components?