Hi I’m a complete beginner at Unreal and I’ve only been doing blueprint for about a month I have no idea how to fix this, the input only works on the last instance placed in level any help would be appreciated thanks.
No real clue as to what I’m looking at here? what are you trying to do?
I created a system that when the player goes up to a computer and holds the I key down a widget pops up with information about the game aspects, they are located throughout the level. the widgets work but when I add in the key input node only the last computer placed in the level shows the widget and the others stop working so only one works at a time.
Is the code in screenshot running on the computer actors? If so, the input event is probably just being consumed by the most recent actor, which won’t let anything else use it.
Should probably move the code to the player character, and when overlap happens, save a reference to computer as a variable that you can cast to when the input event happens on the player.
Might want to doublecheck that end overlap there before clearing it, but, yea. And probably move the widget creation to a function on the computer actor so it can use its own vars. I just pulled up a random empty widget to test with.
best approach is on input TRACE to get an interactive result, then execute logic based on the trace hit actor.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.