Is there a way to cast the ULocalPlayer to my own type? I have APlayerCharacter (or in this case ABasePlayerCharacter) with all the stuff required for a Player… but cannot find a way to cast the ULocalPlayer.
I have tried the following:
FString error;
ULocalPlayer* newLocalPlayer = gameInstance->CreateLocalPlayer(a, error, true);
ABasePlayer* castPlayer = Cast<ABasePlayer>(newLocalPlayer->StaticClass());
but the cast returns an empty castPlayer
This feels like a wild goose chase… for 7 evenings now, I try to create 2 players on the screen that are controlled by specific keys and separate gamepads… I think I could have made my own game by now… I can’t help but blame the documentation It’s really hard to find example code for things you want to do with C++… All this blue print **** is useless to me.
Really appreciate peoples help. Thanks.