# Geting bp function from any actor?

**URL:** <https://forums.unrealengine.com/t/geting-bp-function-from-any-actor/311621>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [March 18, 2015, 10:50pm UTC](https://forums.unrealengine.com/t/geting-bp-function-from-any-actor/311621 "2015-03-18T22:50:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zip](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zip](https://forums.unrealengine.com/u/zip)\
**Post date:** [March 18, 2015, 10:50pm UTC](https://forums.unrealengine.com/t/geting-bp-function-from-any-actor/311621/1 "2015-03-18T22:50:53Z")

</div>

Hi, how can i create global BP function and later call it from any BP in game, for example i have 2(++) weapons, in first weapon BP i have function to check current physics material when i shoot, but now i cant use this function in second weapon BP, for now i copy all nodes from one weapon BP to another BP, but better i think will be just some how call this function from anywhere, so how i can create some kind stuff? thx

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [March 19, 2015, 1:20am UTC](https://forums.unrealengine.com/t/geting-bp-function-from-any-actor/311621/2 "2015-03-19T01:20:21Z")

</div>

Hi ,

You have two options here:

1. You can create a Parent weapon class that has basic functions you need for weapons, and then create a Child class that use different meshes and assign extra functionality. There’s an example in Content Examples you can look at inside Blueprints\_Advanced map, and you can read about it here: [https://docs.unrealengine.com/latest/INT/Resources/ContentExamples/Blueprints\_Advanced/2\_5/index.html](https://docs.unrealengine.com/latest/INT/Resources/ContentExamples/Blueprints_Advanced/2_5/index.html)
2. You can create a Blueprint Function Library, which contains static Functions that can be used by other Actors in your game. Create one in editor by clicking Add New button, and under Blueprints you’ll find Blueprint Function Library. You can then call these functions from any other BP.

Of two, I would recommend using Parent/Child functionality for this type of setup. Hope that helps!

---

<div class="post-metadata">

**Author:** ![zip](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zip](https://forums.unrealengine.com/u/zip)\
**Post date:** [March 19, 2015, 7:27pm UTC](https://forums.unrealengine.com/t/geting-bp-function-from-any-actor/311621/3 "2015-03-19T19:27:40Z")

</div>

thx \*\* \*\*, that is what i need!!
