# Problem with fixing the bug

**URL:** <https://forums.unrealengine.com/t/problem-with-fixing-the-bug/2652164>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [August 29, 2025, 3:57pm UTC](https://forums.unrealengine.com/t/problem-with-fixing-the-bug/2652164 "2025-08-29T15:57:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![oklekela](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@oklekela](https://forums.unrealengine.com/u/oklekela)\
**Post date:** [August 29, 2025, 3:57pm UTC](https://forums.unrealengine.com/t/problem-with-fixing-the-bug/2652164/1 "2025-08-29T15:57:56Z")

</div>

![изображение_2025-08-29_185110767](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/a/2/ea2e66843645802b2bc3d814a5710cc1df1339df.png)Hello, this is a blueprint code that is used to check whether a timer in another blueprint has finished or not, and then open a door if the timer has ended. However, I’ve encountered a bug: if the character is constantly within the script’s zone, it doesn’t trigger and doesn’t open the door. I want to ask if there is a way to loop the check of the **`Vsempoka`** variable or modify the code to fix this bug (simply using Event Begin Play is not an option because the variable is located in the character’s code, as it connects the two scripts together). If more screenshots are needed, let me know, and I’ll send them.

---

<div class="post-metadata">

**Author:** ![BOBtheROSS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BOBtheROSS](https://forums.unrealengine.com/u/BOBtheROSS)\
**Post date:** [August 29, 2025, 10:43pm UTC](https://forums.unrealengine.com/t/problem-with-fixing-the-bug/2652164/2 "2025-08-29T22:43:02Z")

</div>

I assume the Overlap from “Proverka” is a collision component with OverlapAllDynamics profile. This has Collision Enabled set to QueryOnly(NophysicsCollision).

You can kind of force an Overlap test for that component when your timer finished by using SetCollisionEnabled: set it to NoCollision and directly after back to QueryOnly(NophysicsCollision).

The next frame the overlap should trigger as many times as there are objects already inside the collision.

---

<div class="post-metadata">

**Author:** ![oklekela](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@oklekela](https://forums.unrealengine.com/u/oklekela)\
**Post date:** [August 30, 2025, 9:22am UTC](https://forums.unrealengine.com/t/problem-with-fixing-the-bug/2652164/3 "2025-08-30T09:22:18Z")

</div>

Thank you very much, however, there must be DELAY otherwise a mistake about an endless loop is given

 ![изображение_2025-08-30_122204684](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/d/a/ddace99ed2692dd0794748976cb81e801843c2ef.png)

---

<div class="post-metadata">

**Author:** ![BOBtheROSS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BOBtheROSS](https://forums.unrealengine.com/u/BOBtheROSS)\
**Post date:** [August 30, 2025, 3:28pm UTC](https://forums.unrealengine.com/t/problem-with-fixing-the-bug/2652164/4 "2025-08-30T15:28:45Z")

</div>

I think there is a cleaner way using Event Disptacher, if you like 😉 I assume the timer you were talking about is in BP\_ThirdPersonCaharacter and the door has the “Proverka” collision.

- Setup an Event Dispatcher in BP\_ThirdPersonCaharacter (example name: OnTimerFinished) that gets called when the timers has finished.
- When “Proverka” triggers begin Overlap and the bool is false, bind a custom event to the OnTimerFinished from your BP\_ThirdPersonCaharacter. That custom event can do the deactiavtion + reactivation of the “Proverka” collision.
- Add an End Overlap of the “Proverka” collision. From that node cast OtherActor to your BP\_ThirdPersonCaharacter to unbind the custom event again.
