# Casting to player fails

**URL:** <https://forums.unrealengine.com/t/casting-to-player-fails/439804>\
**Category:** Blueprint\
**Tags:** bind, unreal-engine, fail, cast, question, Blueprint\
**Created:** [December 19, 2018, 3:29pm UTC](https://forums.unrealengine.com/t/casting-to-player-fails/439804 "2018-12-19T15:29:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![spynorbays](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@spynorbays](https://forums.unrealengine.com/u/spynorbays)\
**Post date:** [December 19, 2018, 3:29pm UTC](https://forums.unrealengine.com/t/casting-to-player-fails/439804/1 "2018-12-19T15:29:28Z")

</div>

262850-

 ![262861-2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/0/9/909454afd3ea29754b2e1e113c2639c351776688.jpeg)

ng

I’m trying to get the Dampener Status boolean from PlayerCharacter1 and bind it into a text in the viewport.  
But it’s not working. I tried to create a variable for the PlayerCharacter1 and binding from the Designer but the same problem occurred. Please help. (Dampener Status boolean works fine, I just can’t add it in the viewport)

---

<div class="post-metadata">

**Author:** ![Lupix](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lupix/32/593417_2.png) [@Lupix](https://forums.unrealengine.com/u/Lupix)\
**Post date:** [December 19, 2018, 3:50pm UTC](https://forums.unrealengine.com/t/casting-to-player-fails/439804/2 "2018-12-19T15:50:15Z")

</div>

The warning says PlayerCharacter1 does not inherit from Character. Therefore, it can’t be cast from Character to PlayerCharacter1. Try making it so PlayerCharacter1 inherits from the Character class. (The answer is actually already in the warning message you are getting in the first image)

---

<div class="post-metadata">

**Author:** ![spynorbays](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@spynorbays](https://forums.unrealengine.com/u/spynorbays)\
**Post date:** [December 19, 2018, 4:05pm UTC](https://forums.unrealengine.com/t/casting-to-player-fails/439804/3 "2018-12-19T16:05:59Z")

</div>

![262864-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/3/b/b3bb8044f22ee96a282f1bf782f2012a76efca08.png)

I replaced “Get Player Character” with the “Get Player Pawn” and problem solved. I saw that warning but didn’t really understand what it was meaning.  
After reading your reply I realized my Character was not a “Character” blueprint class, I made it “Pawn” because I don’t need any walking/jumping movement.

---

<div class="post-metadata">

**Author:** ![Lupix](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lupix/32/593417_2.png) [@Lupix](https://forums.unrealengine.com/u/Lupix)\
**Post date:** [December 19, 2018, 4:10pm UTC](https://forums.unrealengine.com/t/casting-to-player-fails/439804/4 "2018-12-19T16:10:44Z")

</div>

Glad I helped. A pawn can also walk and jump, the difference is that Character extends Pawn to provide game specific functionality. I believe the best fit for what you were saying is actually just a plain Actor.
