# Cast to Anim \_BP in an Actor\_BP

**URL:** <https://forums.unrealengine.com/t/cast-to-anim-bp-in-an-actor-bp/777452>\
**Category:** International\
**Tags:** actor, casting, actor-blueprint, unreal-engine, cast, question, Blueprint\
**Created:** [February 24, 2023, 1:42am UTC](https://forums.unrealengine.com/t/cast-to-anim-bp-in-an-actor-bp/777452 "2023-02-24T01:42:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wadjidjo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Wadjidjo](https://forums.unrealengine.com/u/Wadjidjo)\
**Post date:** [February 24, 2023, 1:42am UTC](https://forums.unrealengine.com/t/cast-to-anim-bp-in-an-actor-bp/777452/1 "2023-02-24T01:42:11Z")

</div>

Hello, i’m trying to do when the player hit an actor\_BP (which is a trigger box) it cast to the agentAnim\_BP but i don’t know what i need to link with the _objet_.

Thanks for your help. 🙂

 ![Capture d'écran_20230224_023922](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/4/9/e49ec1aea64fa004714347f12a428e80b35d2635.jpeg)

 ![Capture d'écran_20230224_024015](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/3/f/f3fd879142b32927fedcc4b9d067d3e3fadea452.png)

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [February 24, 2023, 1:53am UTC](https://forums.unrealengine.com/t/cast-to-anim-bp-in-an-actor-bp/777452/2 "2023-02-24T01:53:26Z")

</div>

Hey @Wadjidjo!

So casting isn’t exactly what you need to be doing here. You should try using a “Custom Event” on the Agent, then drag your skeletal mesh in, use “Get Animation Blueprint”, and then cast THAT to “agent\_AnimBP” → set “Danse?” = true.

Then on your trigger box, you’ll use an _Event Dispatcher_ to send that message to the agent 🙂 Here’s some documentation on how that works!

> **[Actor Communication](https://docs.unrealengine.com/4.27/en-US/ProgrammingAndScripting/ActorCommunication/)**
>
> Overview of the different methods of Actor Communication.

---

<div class="post-metadata">

**Author:** ![Wadjidjo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Wadjidjo](https://forums.unrealengine.com/u/Wadjidjo)\
**Post date:** [February 24, 2023, 2:10pm UTC](https://forums.unrealengine.com/t/cast-to-anim-bp-in-an-actor-bp/777452/3 "2023-02-24T14:10:25Z")

</div>

So i read the documentation about Call and Bind and i tried something like that but it still doesn’t work. ☹ (Instead of _Event BeginPlay_ in the boxdanse\_BP it’s a _BeginOverlap_ i was testing some things my bad)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/c/6/0c6cfa7927281223db1a739a22272f42f7823303.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/3/a/43a4111f201f262048bc22c88763aeff1854e2a5.png)
