Download

C++ and blueprint classes

Hi guys, I have a question, just a little doubt on blueprint classes. I have some objects, like different type of medikits, those items are identified by a mesh component and a health value. Let’s say I have 25% and 50% medikits. I make a c++ base class named AMedikit, do I need to make a c++ derived class for both items(e.g. ASmallMedikit and ABigMedikit) or can I make two blueprint classes based on AMedikit and just edit the mesh component and the health value?

Either one should be fine. Either way, the separate classes for Big and Small would be nice when people drop them into the map from content browser.

You can use the same C++ base class, just create different blueprints. This is pretty much exactly what Blueprint is designed for, changing default values.