# Error in first person character blueprint

**URL:** <https://forums.unrealengine.com/t/error-in-first-person-character-blueprint/2299271>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [January 23, 2025, 1:48pm UTC](https://forums.unrealengine.com/t/error-in-first-person-character-blueprint/2299271 "2025-01-23T13:48:38Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Machii07](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Machii07](https://forums.unrealengine.com/u/Machii07)\
**Post date:** [January 23, 2025, 1:48pm UTC](https://forums.unrealengine.com/t/error-in-first-person-character-blueprint/2299271/1 "2025-01-23T13:48:38Z")

</div>

hey, i tried to make a double door open and close while following a tutorial but now my first person blueprint suddenly shows an error -Could not find a function named “Open\_door” in ‘BP\_FirstPersonCharacter’.  
Make sure ‘BP\_FirstPersonCharacter’ has been compiled for Open Door  
Can’t connect pins Object and Hit Actor : This cast has an invalid target type (was the class deleted without a redirect?). does anyone know how i can fix this? also now i can’t move my character when i hit play either

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/6/9/d69b7b36ac81de11e70cafe98dc6b189d8ae0329.png)

---

<div class="post-metadata">

**Author:** ![PietroPerun](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PietroPerun](https://forums.unrealengine.com/u/PietroPerun)\
**Post date:** [January 23, 2025, 2:18pm UTC](https://forums.unrealengine.com/t/error-in-first-person-character-blueprint/2299271/2 "2025-01-23T14:18:54Z")

</div>

It seems like you removed or renamed the class that you are casting to. Try to delete that cast node and cast to the right actor.

---

<div class="post-metadata">

**Author:** ![PrezThompkins](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/prezthompkins/32/994994_2.png) [@PrezThompkins](https://forums.unrealengine.com/u/PrezThompkins)\
**Post date:** [January 23, 2025, 5:54pm UTC](https://forums.unrealengine.com/t/error-in-first-person-character-blueprint/2299271/3 "2025-01-23T17:54:44Z")

</div>

It says ‘Bad Cast Node’ on your cast.  
Try pulling off your hit actor and doing a new cast.

As a side note, you should look into Blueprint Interface if you’re not already using them. Casting get’s expensive after a while.

---

<div class="post-metadata">

**Author:** ![Machii07](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Machii07](https://forums.unrealengine.com/u/Machii07)\
**Post date:** [January 23, 2025, 5:55pm UTC](https://forums.unrealengine.com/t/error-in-first-person-character-blueprint/2299271/4 "2025-01-23T17:55:55Z")

</div>

hey thanks for replying i actually fixed that but apparently none of my interactions work like opening a door or picking up a key

---

<div class="post-metadata">

**Author:** ![PrezThompkins](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/prezthompkins/32/994994_2.png) [@PrezThompkins](https://forums.unrealengine.com/u/PrezThompkins)\
**Post date:** [January 23, 2025, 6:03pm UTC](https://forums.unrealengine.com/t/error-in-first-person-character-blueprint/2299271/5 "2025-01-23T18:03:25Z")

</div>

It’s difficult to diagnose the issue without a fresh screenshot.  
Let’s tackle one thing at a time.  
Throw some breakpoints on those nodes, and make sure the graph is actually reaching the ‘open door’ node.

---

<div class="post-metadata">

**Author:** ![Machii07](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Machii07](https://forums.unrealengine.com/u/Machii07)\
**Post date:** [January 23, 2025, 6:04pm UTC](https://forums.unrealengine.com/t/error-in-first-person-character-blueprint/2299271/6 "2025-01-23T18:04:55Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/4/2/b4243ef575a5798fd229066513f61f8a6c7b999c.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/c/9/dc9c8d0d9edd187984559c2fc806639d191f2d53.png)

---

<div class="post-metadata">

**Author:** ![PrezThompkins](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/prezthompkins/32/994994_2.png) [@PrezThompkins](https://forums.unrealengine.com/u/PrezThompkins)\
**Post date:** [January 23, 2025, 6:11pm UTC](https://forums.unrealengine.com/t/error-in-first-person-character-blueprint/2299271/7 "2025-01-23T18:11:06Z")

</div>

Okay, so it looks like you’re trying to use two different approaches here.

Those ‘on Overlap’ nodes in your BP\_Entry\_Door are a completely different function from the ‘Open Door’ function you’re calling in your BP\_FirstPersonCharacter.

Ideally, if the doors are opening on their own when the player overlaps, you should have the door control itself (i.e. On overlap, detect if the overlapping actor is the player, and then do the thing).

If the doors require input from the player (hold E, push a button, etc), then you’d handle that from the BP\_FirstPersonCharacter.

Those are just two examples. Which approach are you trying?

---

<div class="post-metadata">

**Author:** ![Machii07](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Machii07](https://forums.unrealengine.com/u/Machii07)\
**Post date:** [January 23, 2025, 6:12pm UTC](https://forums.unrealengine.com/t/error-in-first-person-character-blueprint/2299271/8 "2025-01-23T18:12:53Z")

</div>

I am trying to have to press E to open the door

---

<div class="post-metadata">

**Author:** ![PrezThompkins](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/prezthompkins/32/994994_2.png) [@PrezThompkins](https://forums.unrealengine.com/u/PrezThompkins)\
**Post date:** [January 23, 2025, 6:18pm UTC](https://forums.unrealengine.com/t/error-in-first-person-character-blueprint/2299271/9 "2025-01-23T18:18:19Z")

</div>

Okay, then you don’t need to be telling the door to look for an overlap, because the door isn’t deciding when it opens.

The door needs a function that makes it open,  
and whatever is telling it to open needs to call that function.

So if the player uses E,  
and the player is in range (or overlapping the doors area, or whatever criteria you want),  
AND the door is not yet open,  
THEN  
trigger the open door function.

Again, try going into your First Person Character blueprint and placing some breakpoints. (Right Click, Toggle Breakpoint).  
See how far into your graph it’s getting before it stops.

---

<div class="post-metadata">

**Author:** ![Machii07](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Machii07](https://forums.unrealengine.com/u/Machii07)\
**Post date:** [January 23, 2025, 6:36pm UTC](https://forums.unrealengine.com/t/error-in-first-person-character-blueprint/2299271/10 "2025-01-23T18:36:14Z")

</div>

okay so before i had this blueprint i used a different tutorial that had similar stuff but it still didn’t work also I have a blueprint for picking up a key to open a safe door and even that is not working

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/6/2/9623b9c2d565a199adc9e26df8b2cb489dba830b.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/2/9/b2979298cd71188a49fe2c1bf470208187fbc2ab.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/d/c/8dcf21a71d11d37c8063a34ec587c04eb698c149.png)

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [January 23, 2025, 8:45pm UTC](https://forums.unrealengine.com/t/error-in-first-person-character-blueprint/2299271/11 "2025-01-23T20:45:48Z")

</div>

Blueprint based interaction system that uses Interfaces.  
Part 1 shows how to set up the press E to interact aspects.  
Part 2 Handles doors  
Part 3 Elevators  
Part 4 Multi-Directional Doors

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/9/a/c9a2b4428a6ed7497a83e00fb60bcde304bfa83e.jpeg "UE5 - Multiplayer Interaction system Pt 1") ](https://www.youtube.com/watch?v=faqzZgUK-K4)
