What is the first function that fires when a controller posses a pawn, and references such as GetPawn() are not null, from within the PlayerController class.
Hello!
There is a function in pawn what you can override… this function runs on server and client too…
virtual void PossessedBy(AController* NewController);
// for unpossess if you need
virtual void UnPossessed()
but if you wanna make sure your controller replicated Pawn reference you should override this in PlayerController class
/** Replication Notification Callbacks */
UFUNCTION()
virtual void OnRep_Pawn();
This will be called after pawn change in playercontroller…
hope this helps…
Cheers