# I cant find a suitable object from my cast!

**URL:** <https://forums.unrealengine.com/t/i-cant-find-a-suitable-object-from-my-cast/40592>\
**Category:** Community & Industry Discussion\
**Tags:** unreal-engine\
**Created:** [September 3, 2015, 1:57pm UTC](https://forums.unrealengine.com/t/i-cant-find-a-suitable-object-from-my-cast/40592 "2015-09-03T13:57:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![HollyOPK](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HollyOPK](https://forums.unrealengine.com/u/HollyOPK)\
**Post date:** [September 3, 2015, 1:57pm UTC](https://forums.unrealengine.com/t/i-cant-find-a-suitable-object-from-my-cast/40592/1 "2015-09-03T13:57:27Z")

</div>

Hello there! I have a little problem trying to cast a monsterBP in my animnotify event, because my monsterbp will be an AI, so when I cast the monsterBP I need an object to connect with the cast!

PS: I already finished my characterBP animnotify without problems, AnimNotify -\> Cast CharacterBP (object -\> getplayercontroller index 0).

I tried almost everything in engine on my monsterBP Object, but does not work! Someone can help me please?

Thank you!

---

<div class="post-metadata">

**Author:** ![Kinos141](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kinos141](https://forums.unrealengine.com/u/Kinos141)\
**Post date:** [September 3, 2015, 3:01pm UTC](https://forums.unrealengine.com/t/i-cant-find-a-suitable-object-from-my-cast/40592/2 "2015-09-03T15:01:18Z")

</div>

Have you tried to pin from an “get AI controller” node?  
Also, you should post this in the blueprint forums

---

<div class="post-metadata">

**Author:** ![HollyOPK](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HollyOPK](https://forums.unrealengine.com/u/HollyOPK)\
**Post date:** [September 3, 2015, 4:04pm UTC](https://forums.unrealengine.com/t/i-cant-find-a-suitable-object-from-my-cast/40592/3 "2015-09-03T16:04:16Z")

</div>

> [@KinDaKreator;370968](#):
>
> Have you tried to pin from an “get AI controller” node?  
> Also, you should post this in the blueprint forums

Yes I already tried get ai controller, but says that is not inherited.

Sorry for wrong section, i will search for the blue print forum!

---

<div class="post-metadata">

**Author:** ![JmDevTx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JmDevTx](https://forums.unrealengine.com/u/JmDevTx)\
**Post date:** [September 3, 2015, 9:18pm UTC](https://forums.unrealengine.com/t/i-cant-find-a-suitable-object-from-my-cast/40592/4 "2015-09-03T21:18:14Z")

</div>

Your question was rather vague, but it seems like you are trying to cast so that you can play the proper animations. If so, just know that a cast will not work unless you are playing the game, it will always fail in editor while previewing due to things not being initialized (such as AI being spawned).

---

<div class="post-metadata">

**Author:** ![HollyOPK](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HollyOPK](https://forums.unrealengine.com/u/HollyOPK)\
**Post date:** [September 4, 2015, 1:30am UTC](https://forums.unrealengine.com/t/i-cant-find-a-suitable-object-from-my-cast/40592/5 "2015-09-04T01:30:00Z")

</div>

> [@Jamendxman3;371307](#):
>
> Your question was rather vague, but it seems like you are trying to cast so that you can play the proper animations. If so, just know that a cast will not work unless you are playing the game, it will always fail in editor while previewing due to things not being initialized (such as AI being spawned).

I will post the images, is same type of notify but the working one is from my character, and the not working one is from monster.

 ![WORKING.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/6/1/616ef5919a17950e59229b7e36fa9f4fb4dd6923.jpeg)  
 ![not working.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/3/f3bb7dac9a60686d5c8906f15cbac442e6962799.png)
