# Casting Custom Event Does Not Work

**URL:** <https://forums.unrealengine.com/t/casting-custom-event-does-not-work/36438>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [July 24, 2015, 5:41pm UTC](https://forums.unrealengine.com/t/casting-custom-event-does-not-work/36438 "2015-07-24T17:41:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pootis\_Tootis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pootis\_Tootis](https://forums.unrealengine.com/u/Pootis_Tootis)\
**Post date:** [July 24, 2015, 5:41pm UTC](https://forums.unrealengine.com/t/casting-custom-event-does-not-work/36438/1 "2015-07-24T17:41:50Z")

</div>

I have 2 simple blueprints, one is just a wall that moves in a certain direction, the other is a trigger for the movement when the player enters it. (FYI Im using a blank project, not third person), The wall blueprint works fine on its own but the casting doesn’t work.

 ![1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/7/8/783531b342a1e4b4b36638abcea12b620fed1ddf.jpeg)  
 ![9306d27b7b7e8ea04359e6fa0400168aa0b43235.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)

I’ve connected the Cast failed as well because the cast always fails for some reason. But even then the custom event does not fire in the wall blueprint. Thank you.

---

<div class="post-metadata">

**Author:** ![TheFoyer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheFoyer](https://forums.unrealengine.com/u/TheFoyer)\
**Post date:** [July 24, 2015, 7:29pm UTC](https://forums.unrealengine.com/t/casting-custom-event-does-not-work/36438/2 "2015-07-24T19:29:50Z")

</div>

If the cast fails then the ‘Other Actor’ is not of type plewp. It will never work. That actor is something else.

---

<div class="post-metadata">

**Author:** ![Castle](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Castle](https://forums.unrealengine.com/u/Castle)\
**Post date:** [July 24, 2015, 7:37pm UTC](https://forums.unrealengine.com/t/casting-custom-event-does-not-work/36438/3 "2015-07-24T19:37:49Z")

</div>

If the cast fails you have other problems to solve.

---

<div class="post-metadata">

**Author:** ![Pootis\_Tootis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pootis\_Tootis](https://forums.unrealengine.com/u/Pootis_Tootis)\
**Post date:** [July 25, 2015, 6:25am UTC](https://forums.unrealengine.com/t/casting-custom-event-does-not-work/36438/4 "2015-07-25T06:25:18Z")

</div>

> [@TheFoyer;339743](#):
>
> If the cast fails then the ‘Other Actor’ is not of type plewp. It will never work. That actor is something else.

The actor is supposed to be the player character, I presume, when it enters the trigger. I’ve tried the GetPlayerController but it still doesn’t work.

---

<div class="post-metadata">

**Author:** ![\_cDub](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@\_cDub](https://forums.unrealengine.com/u/_cDub)\
**Post date:** [July 25, 2015, 7:10am UTC](https://forums.unrealengine.com/t/casting-custom-event-does-not-work/36438/5 "2015-07-25T07:10:48Z")

</div>

Who owns the box trigger, the pawn or the moving wall? If it is the wall, you just need the target to be ‘self’

---

<div class="post-metadata">

**Author:** ![Pootis\_Tootis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pootis\_Tootis](https://forums.unrealengine.com/u/Pootis_Tootis)\
**Post date:** [July 25, 2015, 8:56am UTC](https://forums.unrealengine.com/t/casting-custom-event-does-not-work/36438/6 "2015-07-25T08:56:15Z")

</div>

> [@\_cDub;340150](#):
>
> Who owns the box trigger, the pawn or the moving wall? If it is the wall, you just need the target to be ‘self’

It’s a separate blueprint that contains only a box trigger.

---

<div class="post-metadata">

**Author:** ![eXi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/exi/32/906583_2.png) [@eXi](https://forums.unrealengine.com/u/eXi)\
**Post date:** [July 25, 2015, 1:12pm UTC](https://forums.unrealengine.com/t/casting-custom-event-does-not-work/36438/7 "2015-07-25T13:12:47Z")

</div>

What is “plewb”? Is this the wall? If you overlap with your Character, the cast will always fail, because you are trying to cast your Character to the Wall class, which is not possible.  
I recommend you to learn about classes and casting. Only because BP don’t look like code, you will still need to understand how C++ works. Otherwise you won’t get happy with BP.

**For your problem:**

Get a reference of the Wall that has the “Begin” event in your LevelBP by selecting it in the Level and rightclicking in the LevelBP. You should see something like “Add Reference of …” there.  
Once you got that, remove the cast and the Event call. Cast the “Other Actor” to your CharacterBP Class (only to make sure that only the Character overlaps. You won’t use the casted object!).  
Now, behind the successful cast, drag out a wire from the Wall Reference and call your “Begin”. Pack this begin call behind the Successful cast.
