# why does it say "Found more than one function with the same name BatteryResponse"?

**URL:** <https://forums.unrealengine.com/t/why-does-it-say-found-more-than-one-function-with-the-same-name-batteryresponse/1425752>\
**Category:** International\
**Tags:** interface, interfaces, unreal-engine, Blueprint\
**Created:** [November 27, 2023, 1:48pm UTC](https://forums.unrealengine.com/t/why-does-it-say-found-more-than-one-function-with-the-same-name-batteryresponse/1425752 "2023-11-27T13:48:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DonJuan1232](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DonJuan1232](https://forums.unrealengine.com/u/DonJuan1232)\
**Post date:** [November 27, 2023, 1:48pm UTC](https://forums.unrealengine.com/t/why-does-it-say-found-more-than-one-function-with-the-same-name-batteryresponse/1425752/1 "2023-11-27T13:48:48Z")

</div>

So I want to make a mechanic where the player can pick up a Battery.  
But I get this error when I want to compile the Battery.  
If you can help that would be great or if you can show me a better way to do this.

Thank you

This is the code from the Battery

 ![img01](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/8/f/e8f9000e0f766922ef0ca2ec64e33a9ca29bbcd5.png)

This is the code from the Player

 ![img02](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/6/d/16de0367ef555fdf322fc74184c3be294f4e3e74.png)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [November 27, 2023, 2:01pm UTC](https://forums.unrealengine.com/t/why-does-it-say-found-more-than-one-function-with-the-same-name-batteryresponse/1425752/2 "2023-11-27T14:01:54Z")

</div>

It’s because you’ve manually made a custom event called ‘battery response’, but you also have an interface call with the same name.

You need to get rid of the custom event, and ‘implement’ the interface call.

I think this

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/f/f/0ff5ca0cf43e31b18c23e0bbd3a82ffd3aa0b395.png)

is supposed to be an interface call, but it’s possibly just a call within the player, not sure. That’s why the pin is yellow. If it was an interface call, it would have the little envelope icon.

---

<div class="post-metadata">

**Author:** ![DonJuan1232](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DonJuan1232](https://forums.unrealengine.com/u/DonJuan1232)\
**Post date:** [November 27, 2023, 3:07pm UTC](https://forums.unrealengine.com/t/why-does-it-say-found-more-than-one-function-with-the-same-name-batteryresponse/1425752/3 "2023-11-27T15:07:09Z")

</div>

Thank you, it sort of works now. I now have a problem that for some reason when there are 2 “batteries” in the scene it destroys the other one. And when there is only one in the scene it doesnt do anything.

EDIT: nevermind I am an idiot. I had the branch from the battery check on false. so yeah…

Thanks
