Hotkeys for events do not work

Good day.
There are several places on the map where the character interacts with objects. He enters a certain area and when he presses a hotkey, a certain action occurs.
There are several such places.
But, when creating another such area, the hotkeys do not work inside it. I do everything the same way, and here they do not want to work. Please tell me, maybe there is a setting somewhere or I forgot something?
Thanks)



In your second screenshot, it looks like the inputs are not hooked up correctly to Enable Input and Disable Input. You have the PlayerController going into “Target” when it should be going into “Player Controller” and the Target should be coming from “Other Actor” (the actor walking into the colliding box).

Edit: Was this same setup working for other components?

1 Like

I believe you have an error on your Enable Input and Disable Input nodes.
You need to set the Player Controller properly and the target to Self like this:

1 Like

Exactly! I didn’t notice) Thanks.
But, there are two more problems,
The logic works, “print string” displays messages correctly, but

  1. For some reason, when deactivating Niagara, the sound does not turn off
  2. Why does the “Volume Attenuation” sound not work? It spreads to the entire map. Although it is configured and works by itself, but from Blueprint it does not.
    Everything is simple, again I missed some little thing)
    11111

Have you tried an interaction interface? That way on key event, you can check for overlapping actors, then does implement interface, and setup each actors interface response to what it needs to be

1 Like

The sound problem is because in both cases you are creating a NEW sound.

What you should do is when you start the sound you save it in a variable and on the next activation you stop that exact sound.

Edit: Actually you can use the validated getter instead of a flip-flop node for better result:


(if you let the sound end naturally you wont have to press “T” twice to start it.

1 Like

Sorry, I didn’t get it.
(I’m new, I’m just learning this platform)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.