SetOwner in C++

Make sure you have included the .h file for your ABaseCharacter class in the .cpp file of your ABaseWeapon class. The compiler needs to know that you’re assigning a pointer of a type that converts to APawn/AActor.