I have a question. I am trying to implement a button that calls a different ability based on what faction the current pawn is.
The way I set this is up is having an “update” event when the current pawn changes, and setting a variable “Ability 1” with type “Actor” to be variable “X Ability 1” with type “X Ability 1 BP” or variable “Y Ability 1” with type “Y Ability 1 BP”.
Then, on the button I am doing an “OnClick event” which should call the BP which is stored in the variable “Ability 1”.
This is where I have problems, what would be the best way to do that?
I’ve printed out what the variable “Ability 1” contains when i click the button, and it contains the correct ability reference for the current pawn.