Basically, I’m trying to achieve a simple task: When the player approaches the cube and presses “K”, the light turns on above the cube. The player must collide with the cube and press K in order for this to happen.
What I can do: Make it all happen besides the input.
Are you handling the input within the Cube? If yes then it will not work because you don’t really possess the Cube. If this is for a single player game, it will probably work if you select set “Receive Input” to “Player 0” (in cube actor settings). If you are handling the input within the character blueprint it should work as long as you can get a reference to the cube (by a line trace perhaps). If you still can’t solve it, maybe share your code and we can help further
I assume you’re having your input node in the cube’s blueprint? I guess you forgot to use the enable input node within the cube. Anyway, I do prefer something DjSt3rios suggested with a line/sphere trace within your character blueprint and call the respective event of your cube there.
I myself would just do an on begin overlap and set the interacted actor. Then on inputting K cast to cube and execute the event. On end overlap the interacting actor variable would be reset, meaning if you were to press K again the cast would fail.