# Problem with a pressswitch blueprint

**URL:** <https://forums.unrealengine.com/t/problem-with-a-pressswitch-blueprint/503813>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [March 3, 2022, 8:38pm UTC](https://forums.unrealengine.com/t/problem-with-a-pressswitch-blueprint/503813 "2022-03-03T20:38:42Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![franktd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@franktd](https://forums.unrealengine.com/u/franktd)\
**Post date:** [March 3, 2022, 8:38pm UTC](https://forums.unrealengine.com/t/problem-with-a-pressswitch-blueprint/503813/1 "2022-03-03T20:38:42Z")

</div>

Hi, I have a very simple blueprint system to create a press switch . The things work vaguely, the problem is that the press switch is large and when my player walk on the switch it keep toggling on and off, like when the player move, the blueprint detect an overlap exit continually.

Thank 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:** [March 3, 2022, 8:50pm UTC](https://forums.unrealengine.com/t/problem-with-a-pressswitch-blueprint/503813/2 "2022-03-03T20:50:23Z")

</div>

I bet you’re using OverlapComponent. Try using BeginOverlap ( and EndOverlap ).

---

<div class="post-metadata">

**Author:** ![franktd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@franktd](https://forums.unrealengine.com/u/franktd)\
**Post date:** [March 3, 2022, 8:53pm UTC](https://forums.unrealengine.com/t/problem-with-a-pressswitch-blueprint/503813/3 "2022-03-03T20:53:59Z")

</div>

Yes I do have an overlap component and I tried both with actor overlap begin et end et component overlap begin et end, like I said the issue is that the event endoverlap is called when my player move inside the trigger

---

<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:** [March 3, 2022, 9:00pm UTC](https://forums.unrealengine.com/t/problem-with-a-pressswitch-blueprint/503813/4 "2022-03-03T21:00:14Z")

</div>

can you show the code?

And where the collision box is in the component list. It may be moving up and down with the switch.

---

<div class="post-metadata">

**Author:** ![franktd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@franktd](https://forums.unrealengine.com/u/franktd)\
**Post date:** [March 3, 2022, 9:09pm UTC](https://forums.unrealengine.com/t/problem-with-a-pressswitch-blueprint/503813/5 "2022-03-03T21:09:48Z")

</div>

Of course and thx for the help I wont show the complete script since there are a lot of detail but here is the basic for two version I tried. Also Teh switch is a static ovject and is linked to an other statif object do it does not move

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/0/a/e0a460f7eab650fc74f080e864234545948777cc.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/0/5/705e08dd08da9ef5c15afd80a976c710af0b1ea8.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:** [March 3, 2022, 9:10pm UTC](https://forums.unrealengine.com/t/problem-with-a-pressswitch-blueprint/503813/6 "2022-03-03T21:10:55Z")

</div>

Ok, cool, top one is better.

Like I say, can you show the list of components. I’m wondering if the collision box is moving with the switch…

---

<div class="post-metadata">

**Author:** ![franktd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@franktd](https://forums.unrealengine.com/u/franktd)\
**Post date:** [March 3, 2022, 9:18pm UTC](https://forums.unrealengine.com/t/problem-with-a-pressswitch-blueprint/503813/7 "2022-03-03T21:18:17Z")

</div>

The collision box follow the switcg in the sens that the switch is his parent, but its a static object and the parent is a station object, and for debug purpose the trigger is visible during game time, so the location of the trigger is not the issue

---

<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:** [March 3, 2022, 9:21pm UTC](https://forums.unrealengine.com/t/problem-with-a-pressswitch-blueprint/503813/8 "2022-03-03T21:21:13Z")

</div>

If the collision box is moving, that could be your problem.

---

<div class="post-metadata">

**Author:** ![franktd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@franktd](https://forums.unrealengine.com/u/franktd)\
**Post date:** [March 3, 2022, 9:26pm UTC](https://forums.unrealengine.com/t/problem-with-a-pressswitch-blueprint/503813/9 "2022-03-03T21:26:47Z")

</div>

But it does not

---

<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:** [March 3, 2022, 9:28pm UTC](https://forums.unrealengine.com/t/problem-with-a-pressswitch-blueprint/503813/10 "2022-03-03T21:28:32Z")

</div>

Ok. There’s nothing else that can go wrong then. I’m assuming something else is going on, that makes you think the overlaps are changing, when they aren’t.

---

<div class="post-metadata">

**Author:** ![franktd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@franktd](https://forums.unrealengine.com/u/franktd)\
**Post date:** [March 3, 2022, 9:33pm UTC](https://forums.unrealengine.com/t/problem-with-a-pressswitch-blueprint/503813/11 "2022-03-03T21:33:09Z")

</div>

There is a print and a feedback when the overlap ed

---

<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:** [March 3, 2022, 9:34pm UTC](https://forums.unrealengine.com/t/problem-with-a-pressswitch-blueprint/503813/12 "2022-03-03T21:34:18Z")

</div>

Sorry, I give up. I’m just guessing without actually seeing the BP structure…

---

<div class="post-metadata">

**Author:** ![franktd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@franktd](https://forums.unrealengine.com/u/franktd)\
**Post date:** [March 3, 2022, 9:35pm UTC](https://forums.unrealengine.com/t/problem-with-a-pressswitch-blueprint/503813/13 "2022-03-03T21:35:53Z")

</div>

No prob, thanks for the help
