Problem with a pressswitch blueprint

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

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

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

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.

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
image

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…

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

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

But it does not

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.

There is a print and a feedback when the overlap ed

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

No prob, thanks for the help

1 Like