I am a bit clueless here, I just want to set a variable when the button is clicked.
So i did what I always do when I want to set a variable -> is sticked it to the key/button, but this wont work.
I also tried to cast it to the character blueprint, but i think that i have done something wrong.
I think that something needs to be connected to “Target”, but what? I can’t put in the Charater-Blueprint there - this is what confuses me. (or maybe I am just thinking the wrong way :D)
I would appreciate any help: (NOTE: It is not connected to the “onclick” because I was experimenting around with it - I do get the String, but the variable won’t be set)
Sorry to hijack this, but what if the variable is located in the AIController blueprint? It’s not an actor so ‘Get all actors of class’ and then using for loop to cast to AiController will not work. Any suggestions?
Edit: And how would we access the widget reference from another level once the level containing this particular widget is destroyed by Gameinstance?