How to reference a FirstPersonCharacter in the Player Controller BP?

In my Player Controller BP, I’m trying to implement code to switch between a FirstPersonCharacter and a SpectatorPawn with a Possess node. I can reference the SpectatorPawn easily (Cast to SpectatorPawn, using GetPlayerPawn as object ref), but I cannot reference the FirstPersonCharacter (using Cast to FirstPersonCharacter, with Get PlayerCharacter as object ref).

What am I doing wrong?

1 Like

When you are in SpectatorPawn GetPlayerCharacter will return null.
Simply store a reference to your FirstPirsonCharacter before un possessing and then posses in it

1 Like

Thanks for your reply, but as you can see my question: “How do I store the reference to my FirstPersonCharacter”? So, how do I do that?

Okay, sorry, I think I get it. I’ll try to create the ref in Event Begin Play as first thing, and then see what happens. Thanks again.

@real.dude, your suggestion worked, thanks a million!

1 Like