How to get player character?

Want to move my character in start of game(recreating of Plants vs Zombies) for a few pixels to left,like in original game before start. So i put target point like in lessons and make blueprint like in lesson

But on start i get an error that return value of Get Player Character is null.

Where i’m wrong?

To be honest, I did not expect this to work, but it did. I did exactly what you did. I had thought it would be a simple Cast to fix it, but the fact that it worked means there is something else I am missing from this puzzle of yours.

The only thing I can think of, you are not spawning the player character on begin play. Which is why you are receiving that null error.

Like I said, I had my doubts that this would work as is, but it did. You are not showing us something.

My BP: Screenshot - 8e6cbcbc8f72a380e8f9432f1c0173fe - Gyazo

oh,it happen becouse i was very tired))Yeah, i think that player pawn and character is the same…thanks

No problem!

I experienced this issue as well when starting the game with ‘Simulate’ play options.

My character did not get possessed and all ‘Get Player Character’ functions returned ‘None’.

After clicking on ‘Possess’ the error disappeared.

thx a lot mate it kills me when i reach at this problem you saved my life a true hero