I made a C++ (APlayer_CPP) class with my methods and I extended it with a BP (APlayer_BP).
Now I have an actor and I need to find all players that this actor overlapp (I need to use the C++ methods for those players).
My first question is: a player instance of a BP that extends a C++ class, is considered also of the C++ type? (Is a APlayer_BP also a APlayer_CPP?)
To find my overlapped player I use the GetOverlappingActors with APlayer_CPP::StaticClass() param type. The results have to be filled in a AActor* TArryay. So now I need to convert my AActor in a APlayer_CPP.
What I am doing (not succesfully) is cast avery actor in ACharacter class and use GetPlayerState()->GetPawn() casted then in APlayer_CPP.
What am I doing wrong?
Thanks.