Why does this Gate doesn't work?

So there is a question, why this gate is not working?

What I want to achieve is to be able to activate interactive element by pressing Primary Action button, but only when I’m inside the sphere.
When I enter the sphere, I correctly receive debug string “I’m in” which means it should Open the Gate, and enable flow that starts when I press the Primary Action button (I correctly receive “Input Received”) but it doesn’t go past the Gate (I have another Debug Print after that)

Any ideas?

1 Like

how about this?

Also tried your approach…the problem is you are not getting the input action in that object…try this (it worked for me)

2 Likes

My guess is that this should be an interface event and the input should be in the player character.

1 Like

Hello! Thank you everyone for your answers.

I found the solution in this thread:

It turned out that while having two Actors of the same type on the scene, each of them had at Begin Play a node called Enable Input. This apparently disabled input in the another Actor of the same type. My graph with Gate should work, but only if it was alone on the level.

What I did (screen below) was to enable and disable input only when the player enter or leaves a sphere of activation of the Actor.

1 Like

To elaborate a bit more on the issue: that is why I recommended changing the enable input for an interface. This is so the player character is the only class that manages inputs. Every other class should sit there and wait to be interacted with.

Enabling / disabling input will eventually become an issue because its hard to keep track.

2 Likes

Thanks, it is already a hard work to keep track of it. I will look into interfaces because as for now I have very little knowledge about them in Blueprints.

Feel free to share or ask if you need anything.