How can i make multiple types of rifles from a rifle main class

How can i make multiple types of rifles from a rifle main class?

Like a main class named rifle and some subclasses of the rifle with different mesh and properties scattered in the world

Easier than you think!

  • Create a new blueprint class called something like riffle
  • Add the functions and variables you want all riffle child classes to have in common
  • Create a new blueprint class and have the parent be your riffle class
  • Name your new blueprint class something like M16

The m16 blueprint can have its own unique properties that are different than say an AK47 blueprint but UE4 will know they share characteristics because they’re both from the riffle class.

You’ll be able to do things like get all actors of class and it will return both M16s and AK47s

best