# What object do I cast to in this cast function?

**URL:** <https://forums.unrealengine.com/t/what-object-do-i-cast-to-in-this-cast-function/362018>\
**Category:** Blueprint\
**Tags:** reference-blueprint, unreal-engine, Blueprint, question\
**Created:** [June 26, 2016, 12:22am UTC](https://forums.unrealengine.com/t/what-object-do-i-cast-to-in-this-cast-function/362018 "2016-06-26T00:22:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryson2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ryson2](https://forums.unrealengine.com/u/Ryson2)\
**Post date:** [June 26, 2016, 12:22am UTC](https://forums.unrealengine.com/t/what-object-do-i-cast-to-in-this-cast-function/362018/1 "2016-06-26T00:22:16Z")

</div>

Hi,  
I have a simple question. I want to call a “fire” event in an Animation Blueprint from Level Blueprint. I have set up a trigger for this. When I try to cast to the animation blueprint from level blueprint, I dont know what should I connect to this “object” input pin in cast to.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/3X/9/7/9734ed92236b4cf5a4c4364339ed6a27a6b5f138.jpeg) ](https://i.imgur.com/rLRAtTN.jpg)

[![](https://d3kjluh73b9h9o.cloudfront.net/original/3X/0/d/0d576fc417cbfd8a083fa19520d69b6bb5c370b8.jpeg) ](https://i.imgur.com/Q0PZ5Ur.jpg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f54268a3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f54268a3](https://forums.unrealengine.com/u/anonymous_user_f54268a3)\
**Post date:** [June 26, 2016, 1:02am UTC](https://forums.unrealengine.com/t/what-object-do-i-cast-to-in-this-cast-function/362018/2 "2016-06-26T01:02:05Z")

</div>

You need to get player character, or whatever pawn it is that you are calling it on, from that get it’s mesh, from the mesh get the anim instance and that is what you cast to your animblueprint.

---

<div class="post-metadata">

**Author:** ![Ryson2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ryson2](https://forums.unrealengine.com/u/Ryson2)\
**Post date:** [June 26, 2016, 1:25am UTC](https://forums.unrealengine.com/t/what-object-do-i-cast-to-in-this-cast-function/362018/3 "2016-06-26T01:25:31Z")

</div>

Here is what I want to do exactly  
It is a simple animation of closing of a laptop screen. I want it so that whenever trigger is activated, laptop’s screed is closed. I have imported laptop screen as skeletal mesh with closing animation. I have created an animation blueprint. I have figured out all else but the only thing I am not able to do is get calling the “fire” event in Animation blueprint from Level blueprint.  
You told me to get player character or whatever pawn it is. How do I do that? I am sorry if its extremely basic. But I am farily new to this.
