# Can't call function from another blueprint

**URL:** <https://forums.unrealengine.com/t/cant-call-function-from-another-blueprint/296561>\
**Category:** Blueprint\
**Tags:** calling-a-function, unreal-engine, functions, Blueprint, question\
**Created:** [October 18, 2014, 6:58pm UTC](https://forums.unrealengine.com/t/cant-call-function-from-another-blueprint/296561 "2014-10-18T18:58:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TK3D](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TK3D](https://forums.unrealengine.com/u/TK3D)\
**Post date:** [October 18, 2014, 6:58pm UTC](https://forums.unrealengine.com/t/cant-call-function-from-another-blueprint/296561/1 "2014-10-18T18:58:00Z")

</div>

In the myCharacter blueprint, I have a function called “changeWeapon”. If I call this function in the Event Graph by using “Event Begin Play”, it works but not if I call it from another blueprint, using a reference to the myCharacter BP. The overlap itself does work, though.  
Please refer to the attached pictures for clarification.

Any help would be much appreciated 🙂

 ![18292-untitled-1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/3/5/d3534eac8e88c77aaccd32794bfba4cf9a95fa23.jpeg)

![18293-untitled-2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/d/8/1d841aaf3239f2fdb5b958ba2860de122d5a2f08.jpeg)

![18296-untitled-3.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/0/f/30fa01f6574b9bb1505eb1d454c4a42e742a0b3e.jpeg)

---

<div class="post-metadata">

**Author:** ![Erasio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Erasio](https://forums.unrealengine.com/u/Erasio)\
**Post date:** [October 18, 2014, 7:26pm UTC](https://forums.unrealengine.com/t/cant-call-function-from-another-blueprint/296561/2 "2014-10-18T19:26:45Z")

</div>

Did you set the “Character” variable?

Try using the “Get PlayerCharacter” and cast it to your specific one instead of using that variable.

…at least that’s the obvious problem which could appear.

---

<div class="post-metadata">

**Author:** ![TK3D](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TK3D](https://forums.unrealengine.com/u/TK3D)\
**Post date:** [October 18, 2014, 7:38pm UTC](https://forums.unrealengine.com/t/cant-call-function-from-another-blueprint/296561/3 "2014-10-18T19:38:55Z")

</div>

I make that same mistake over and over again… thank you 🙂 “Cast to” was what I was looking for.
