I am trying to make a button that when I press my interaction button, unlocks a door. For some reason I cannot get the interact portion to work. I tried everything that I can think of and even looked things up online to attempt to fix this issue, but to no luck. Here is the code I currently have.
Hey there @Overseeing_Industry! So first step you should be doing is that your enable input/disable inputs should be after the cast to the character. This is to make sure that it isn’t enabled and disabled whenever your overlap overlaps anything, and only after it recognizes it’s overlapping with your player. After that, if that doesn’t get you sorted, put a print string nod in between your interact and gate to see if your input is getting put in, then a print string node after the gate to see if it’s ever passing in. This will help you determine if your input isn’t getting passed through and that’s the problem, or if your overlaps are the problem.
Disclaimer: One or more of these links are unaffiliated with Epic Games. Epic Games is not liable for anything that may occur outside of this Unreal Engine domain. Please exercise your best judgment when following links outside of the forums.
I’m assuming you’re watching Matt Asplands older tutorial on how to open a door.
However after you get your bearings there, I’d highly recommend using blueprint interfaces (it’s a bit more involved so no pressure on doing that right now) in his updated tutorial on the same topic!