Hey,
I’m trying to use a terminal to control some training targets but after hours trying all I can find online I really can’t seem to make it work.
My setup is the following:
-A target, with built in script to fall down and raise upon damage/command
-A (placeholder) terminal, consisting of just a box and a collision box to determine when player is in range to access it (this here is absolutely not functional but still lets me access the widget)
-A widget, displaying atm just three buttons being up (raise the target), down (lower target) and out (exit the terminal).
The player access the terminal by pressing F, which opens the UI. Then the player can press the buttons which will communicate which target to raise/lower (currently only one, for the sake of making this work before applying it to the 20 targets)
My problem comes when I have to communicate from the widget blueprint that the button up or down has been clicked.
I know the buttons and event react correctly since I can click exit and the UI does close.
I know the communication between the physical terminal and the targets work, as I also made so I can control the target with other keys instead of the UI and it works. The problem really is to pull out of the widget the event that a button has been clicked.
I can’t use direct communication because since the widget is not in the map, I can’t set which target I want to send the data.
Most of the other methods I found are usually between a character and the environment, and as such use the character as target/object, while I don’t have any of those.
As such I am really lost and have no idea how I am supposed to communicate those very simple bool data.