Door only opening sometimes when clicking

Hi! I’m coding with blueprints, my problem lies withing the door not opening everytime, even if my character has a “Keycard” AKA Key. I Watched a youtube tutorial for this a long time ago, but after some other things and coding, the code stopped working properly.

Now, what I’ve figured out is that it only opens when I’m a certain distance away from it (So I cannot hug it, or be too far away) though this also seems inconsistant at times. Here is the door blueprints.

The problem might also be the keycard blueprints, but I would like a confirmation on the door blueprints working first.

Any clue for what could be causing the problem?

Tutorial I watched, probably won’t help but here it is anyways! (might have changed some code) https://www.youtube.com/watch?v=d6PEmrdtUjM

Hey @UkkosDuck!

You shouldn’t need a sequence node here, what is happening is you’re runninng the timeline (Sequence Then 0) and THEN running the branch (Sequence then 1) which can possibly cause the timeline to run again… Try something like this.

Hope this helps! :slight_smile:

I tried that, and while it made the code shorter it didn’t fix the problem, BUT because of that I did figure out that it works perfectly when my linetrace or “Interact” is as far away as possible, the second I go close and get those “Red circles” it stops being consistant

Okay, so that is going to be in your player’s interact code, where you’re drawing the line traces.
Can you bring that back for us to look at? :slight_smile: