# How to get player character?

**URL:** <https://forums.unrealengine.com/t/how-to-get-player-character/368671>\
**Category:** Character & Animation\
**Tags:** move-component-to, unreal-engine, question, Blueprint\
**Created:** [August 29, 2016, 8:33pm UTC](https://forums.unrealengine.com/t/how-to-get-player-character/368671 "2016-08-29T20:33:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rusbaron](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rusbaron](https://forums.unrealengine.com/u/Rusbaron)\
**Post date:** [August 29, 2016, 8:33pm UTC](https://forums.unrealengine.com/t/how-to-get-player-character/368671/1 "2016-08-29T20:33:18Z")

</div>

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

 ![104820-4.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/6/d/06dcfb39efe8ef98c6dedf9d0a3166eb587b1de4.png)

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

 ![104851-5.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/1/f/a1fd884a8c01fb8618a0737cb030fa38634246d7.png)

Where i’m wrong?

---

<div class="post-metadata">

**Author:** ![VictorBurgos](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/victorburgos/32/1008648_2.png) [@VictorBurgos](https://forums.unrealengine.com/u/VictorBurgos)\
**Post date:** [August 30, 2016, 4:21am UTC](https://forums.unrealengine.com/t/how-to-get-player-character/368671/2 "2016-08-30T04:21:42Z")

</div>

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](https://gyazo.com/8e6cbcbc8f72a380e8f9432f1c0173fe)

---

<div class="post-metadata">

**Author:** ![Rusbaron](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rusbaron](https://forums.unrealengine.com/u/Rusbaron)\
**Post date:** [August 30, 2016, 6:58am UTC](https://forums.unrealengine.com/t/how-to-get-player-character/368671/3 "2016-08-30T06:58:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![VictorBurgos](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/victorburgos/32/1008648_2.png) [@VictorBurgos](https://forums.unrealengine.com/u/VictorBurgos)\
**Post date:** [August 30, 2016, 4:57pm UTC](https://forums.unrealengine.com/t/how-to-get-player-character/368671/4 "2016-08-30T16:57:31Z")

</div>

No problem!

---

<div class="post-metadata">

**Author:** ![Di\_Gago](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Di\_Gago](https://forums.unrealengine.com/u/Di_Gago)\
**Post date:** [June 18, 2017, 1:13am UTC](https://forums.unrealengine.com/t/how-to-get-player-character/368671/5 "2017-06-18T01:13:46Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![AliYasin\_ERDOGAN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AliYasin\_ERDOGAN](https://forums.unrealengine.com/u/AliYasin_ERDOGAN)\
**Post date:** [November 12, 2017, 6:50pm UTC](https://forums.unrealengine.com/t/how-to-get-player-character/368671/6 "2017-11-12T18:50:00Z")

</div>

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