What is the correct structure for the following example: I want a weapon base class that has all the base data for making a weapon. Then have a class like rifle that inherits from weapon base. What kind of class does weapon base need to be an actor or pawn or other.
Use Actor or make Item class first so there be common code for picking up and respawning(?). Look up Unreal Tournament to see how it’s done there (but remember you can’t copy paste code UT is copyrighted)
It doesn’t need to inherit from anything unless you plan on utilizing a particular class. Otherwise you’re fine to make your own custom class to inherit a variety of variables from (or methods).
Hi VitaLC0D3R,
Did any of these answers provide you with a solution to your problem? For now, I’m going to set the answer that seems the best as resolved. If you still need help however, please feel free to comment and let us know.
Have a nice day,