# Overlap problem in my Blueprint

**URL:** <https://forums.unrealengine.com/t/overlap-problem-in-my-blueprint/1656670>\
**Category:** Blueprint\
**Tags:** overlap, Input, unreal-engine, Collision, Blueprint, question\
**Created:** [January 31, 2024, 8:21pm UTC](https://forums.unrealengine.com/t/overlap-problem-in-my-blueprint/1656670 "2024-01-31T20:21:37Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Byakuya](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/byakuya/32/891707_2.png) [@Byakuya](https://forums.unrealengine.com/u/Byakuya)\
**Post date:** [January 31, 2024, 8:21pm UTC](https://forums.unrealengine.com/t/overlap-problem-in-my-blueprint/1656670/1 "2024-01-31T20:21:37Z")

</div>

Hello,

I’m encountering an issue with one of my Blueprints in Unreal Engine, and I’d like to seek your assistance in resolving it. Allow me to explain the situation:

I have a character with a component named “**[A]\_Contre.**” I’ve connected an “_ **On Component Begin Overlap** _” event to this component, which sets the “_ **AContreBool** _” variable to True.

Additionally, I’ve linked the _ **"On Component End Overlap** _" event to “_ **AContreBool** _” to set it to False when the overlap ends.

 ![Blueprint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/1/7/d17f3c99e063a7918e892da67888d8cb7357f790.png)

However, when I press my InputAction “ **Shoot** ,” even after setting “ **AContreBool** ” to False through “_ **On Component End Overlap** _,” the Print String associated with my InputAction still returns False.

* * *

It’s evident that the variable is correctly set to False after the “_ **On Component End Overlap** _” event.  
However, there seems to be an issue when using my InputAction. Can you assist me in understanding why this variable doesn’t appear to be recognized when using my “ **Shoot** ” InputAction?

There is My Input and Colision parameter :

 ![Collision](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/7/1/571b25298de220a5011100fccc2eeeb863225f42.png)  
 ![Input](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/1/5/e153bdc335b3afde3bb6c369c8c0da21f3075ca6.png)

**Thank you in advance!**

---

<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:** [January 31, 2024, 8:53pm UTC](https://forums.unrealengine.com/t/overlap-problem-in-my-blueprint/1656670/2 "2024-01-31T20:53:54Z")

</div>

Can you show the input action code?

---

<div class="post-metadata">

**Author:** ![Byakuya](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/byakuya/32/891707_2.png) [@Byakuya](https://forums.unrealengine.com/u/Byakuya)\
**Post date:** [January 31, 2024, 11:17pm UTC](https://forums.unrealengine.com/t/overlap-problem-in-my-blueprint/1656670/3 "2024-01-31T23:17:25Z")

</div>

Hi,

I’m quite new at this, so I’m not sure if there’s any code behind it, but the InputAction has been set up in the ‘_ **Actions Mappings** _’.

I noticed that this might not have been the best way to go about it, so I replaced it with an ‘_ **EnhancedInputAction** _’, but nothing has changed.

![EnhacedInputAction](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/5/0/850239df6dc9dfb13a60762907090c593d65822c.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/6/3/063d3e520eae4761004762d19bfa22a9d73b2de5.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:** [February 1, 2024, 9:00am UTC](https://forums.unrealengine.com/t/overlap-problem-in-my-blueprint/1656670/4 "2024-02-01T09:00:22Z")

</div>

Rather than printing the bool for overlap events, try printing ‘begin overlap’ or ‘end overlap’.

I think you might be getting the print strings jumbled up?..

---

<div class="post-metadata">

**Author:** ![Byakuya](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/byakuya/32/891707_2.png) [@Byakuya](https://forums.unrealengine.com/u/Byakuya)\
**Post date:** [February 1, 2024, 5:01pm UTC](https://forums.unrealengine.com/t/overlap-problem-in-my-blueprint/1656670/5 "2024-02-01T17:01:08Z")

</div>

Thank you for your response.

I’ve tried that, but I **haven’t** noticed anything **unusual**.

 ![Blueprint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/b/9/6b9ca208e4d5b433250e9735b05763cb91e22e23.png)  

There are no other references to this variable. I’ve attached the blueprint of the ball in question.

 ![Ball Blueprint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/7/f/a7ff0d7179e36a20ab0ddc0eca7fb15f735d3107.jpeg)

In essence, around the player, there are **four zones** , and depending on the player, I hide certain of these zones and cancel their Overlap Events, and it’s working.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/0/4/304c31c1bc7a3c1d95782f0e49339e061ad81855.jpeg)

---

<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:** [February 1, 2024, 5:52pm UTC](https://forums.unrealengine.com/t/overlap-problem-in-my-blueprint/1656670/6 "2024-02-01T17:52:56Z")

</div>

Is there more than one of these same blueprints in the level? Are they giving you conflicting messages?

---

<div class="post-metadata">

**Author:** ![Byakuya](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/byakuya/32/891707_2.png) [@Byakuya](https://forums.unrealengine.com/u/Byakuya)\
**Post date:** [February 1, 2024, 6:02pm UTC](https://forums.unrealengine.com/t/overlap-problem-in-my-blueprint/1656670/7 "2024-02-01T18:02:23Z")

</div>

Thank you!

> **Solution** : The issue arose because I had multiple instances of this object (multiple players).
> 
> ![BP](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/5/7/257e6f7317410fe49db03182626c46a5bcf6d349.png)

* * *

_Is it possible to create an instance with its own overlap event without conflicts with others?_

→ I set met variable to private and everything works! 🙂

 ![vARIABLE](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/7/c/a7c87aa1e97034208f7944fe2f1ec12ae8b4d94a.png)

* * *

_One more tips by **[ClockWorkOcean](https://dev.epicgames.com/community/profile/ojG/ClockworkOcean)** :_

> [@Overlap problem in my Blueprint](https://forums.unrealengine.com/t/overlap-problem-in-my-blueprint/1656670/8):
>
> If you have many of them, just make sure the collision boxes are not overlapping each other slight_smile

---

<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:** [February 1, 2024, 6:44pm UTC](https://forums.unrealengine.com/t/overlap-problem-in-my-blueprint/1656670/8 "2024-02-01T18:44:49Z")

</div>

If you have many of them, just make sure the collision boxes are not overlapping each other 🙂

---

<div class="post-metadata">

**Author:** ![Byakuya](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/byakuya/32/891707_2.png) [@Byakuya](https://forums.unrealengine.com/u/Byakuya)\
**Post date:** [February 1, 2024, 7:02pm UTC](https://forums.unrealengine.com/t/overlap-problem-in-my-blueprint/1656670/9 "2024-02-01T19:02:41Z")

</div>

**Noted !** I will take that into consideration 🙂 Thank you for the time you have provided !

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [March 2, 2024, 7:03pm UTC](https://forums.unrealengine.com/t/overlap-problem-in-my-blueprint/1656670/10 "2024-03-02T19:03:37Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
