Opening door blueprint

Hello, today i’ve been messing around little bit with my project and found out that theres some bug in my blueprint and i im not sure where the problem is neither how to fix.

What i aim for is having simple flip flop doors that open and close when used.

Current blueprint as it is sort of works as intended, except when doors are closing and i run out of their interactive box during this period i can keep opening and closing them even when iam not standing in there anymore.
When they opening and i run out, everything works fine, it is just a problem when closing them.

To fix this problem inside my game, i need to run back into their hitbox and out.
Here is my blueprint setup:



NearDoorDetector

Any advices will be greatly appreciated

1 Like

I think you need to stick with component overlap for both, or actor overlap for both.

Whichever one you go for, you also need to cast to the player, otherwise anything can enable the bool, which is probably your problem.

2 Likes

Your overlap function doesn´t really check on what is overlapping. You may need to specify, which overlapping object ticks the boolean (cast to the character for instance).

Here is another example on how you could achieve your goal.

2 Likes

thank you

1 Like