Hello.
I was working in UE4 Blueprints for quite some time, but few days ago I started using custom classes in C++. So my question is:
Is it better to use Pawn class, or Character class for the player? I always used Character, but it’s not as customizable in C++ as the Pawn.
So what should I use?
If you are making a multiplayer game and your player is a biped, then you pretty much have to use Character. Only the Character class contains the CharacterMovementComponent which has the predictive movement system. The predictive movement system smoothes out your players movements to try to minimize the effect of network lag. Unless you want to rewrite this very complex system that is thousands of lines of C++ code, use the Character class.
Unfortunately you cannot remove the capsule component as it is an integral part of the CharacterMovementComponent.
I have had this same issue as well when I try to use the Character class for animals with four legs that are longer than they are tall or otherwise have an odd shape.
As for your other question, I don’t really see any issues in what you posted, but whenever my C++ code is stopping my project from loading I just rem out all the changes I made and start adding them back one line at a time to see where it is crashing.