Hey,
I'm trying to get a proper reference to my local PlayerController in multiplayer. There must be an error in my code below:
MyCharacter.cpp:
The client that executes PlaceObject() first will be just fine. However all other client screens will turn black. Please tell me what am I doing wrong?
I'm trying to get a proper reference to my local PlayerController in multiplayer. There must be an error in my code below:
MyCharacter.cpp:
Code:
void AMyCharacter::PlaceObject(){ if (Controller != NULL && Controller->IsLocalPlayerController() && Role < ROLE_Authority){ AMyPlayerController* MyControllerPointer = Cast<AMyPlayerController>(Controller); }}

Comment