Test if pawn is controlled pawn

I made up a C++ ThirdPersonExample project.
I added several ThirdPersonCharacter BP. (TPC BP)
I added a variable to the TPC BP.

I play as one of the TPC BP’s. The other ones are controlled by AI.

In Event Graph of TPC BP, on Event BeginPlay, I want to set a variable if this current instantiated TPC BP is the controlled pawn - ie it’s me playing!

I see that you can set variables.

However:

  1. I only want to set a variable if I’m
    not the Controlled Pawn
  2. I want to also set another variable
    if I am the Controlled Pawn.

I may be thinking of this the wrong way…any help appreciated.

Isn’t that is what you are looking for?
As all player controllers are usually inherited from PlayerController you just need to check it.

Thank you. This would allow me to set a variable on the ‘ThirdPersonCharacter’ object, from the controller class?

It will allow you to make it directly from your pawn class (ThirdPersonCharacter)