Howdy! Nice to be back.
Well, it’s not all nice, since I’m here with a problem. I’ve made a button blueprint that can be activated when the player presses a key, and this should really be the simplest thing in the universe, but I’m stuck.
I can put one of these buttons in the level and it will work, but when I put two or more things get wonky. The player can only activate whichever button was placed in the level last. The other(s) stop working.
I think this is because I need a reference to the button in my player blueprint, which I set in the Begin Play node of the button:
Over in the player’s blueprint, a Line Trace is made every time you hit a certain key, and if that trace connects with something that matches the button reference, we tell it to activate using a Blueprint Interface.
I swear I’ve done this before and I didn’t run into this particular issue, so I’m flummoxed.