# Having problem casting from Widget blueprint to First Person Character

**URL:** <https://forums.unrealengine.com/t/having-problem-casting-from-widget-blueprint-to-first-person-character/1710442>\
**Category:** Programming & Scripting\
**Tags:** newbie, noob, unreal-engine, Blueprint, question\
**Created:** [February 24, 2024, 9:17pm UTC](https://forums.unrealengine.com/t/having-problem-casting-from-widget-blueprint-to-first-person-character/1710442 "2024-02-24T21:17:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fredmastermind1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fredmastermind1](https://forums.unrealengine.com/u/Fredmastermind1)\
**Post date:** [February 24, 2024, 9:17pm UTC](https://forums.unrealengine.com/t/having-problem-casting-from-widget-blueprint-to-first-person-character/1710442/1 "2024-02-24T21:17:40Z")

</div>

Hey! Newbie here. I’m just testing out some stuff. But I’m having a problem. I want a custom event to play everytime the mouse hovers over some gray bars on the left and right side of the screen (see image below). But for some reason the cast always fails.

 ![Skjermbilde (55)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/1/0/b10c5387edc08bd9580a15ad9e79d13d952a02dc.jpeg)

I have know idea why this is. But here is the code if anyone knows what I’m doing wrong.

 ![Skjermbilde 2024-02-24 220544](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/b/c/bbc6a262ae5404f193e12af79b64cebe012ad85a.png)  
 ![Skjermbilde 2024-02-24 220502](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/5/2/052d241891ca542ae07230a02f5f247dec15e4f9.png)

Oh and I’m casting from a widget blueprint to the First Person Character.

Help is very much needed. Also please take the fact that I’m dumb into account when answering.

Thanks!

---

<div class="post-metadata">

**Author:** ![56legion](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/56legion/32/1194529_2.png) [@56legion](https://forums.unrealengine.com/u/56legion)\
**Post date:** [February 25, 2024, 2:19am UTC](https://forums.unrealengine.com/t/having-problem-casting-from-widget-blueprint-to-first-person-character/1710442/2 "2024-02-25T02:19:59Z")

</div>

Change these to the “get player character” node.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/1/b/f1bf798871197a23c62686e5cdfa4fe37d1922db.png)

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [March 26, 2024, 2:20am UTC](https://forums.unrealengine.com/t/having-problem-casting-from-widget-blueprint-to-first-person-character/1710442/3 "2024-03-26T02:20:22Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
