Hi!
I’ve been working with blueprints for a little while now, but I still have problems when it comes to different blueprints communicating.
What I want is a button that the player can push and activate when they are within a certain range, and looking at the button. There are loads of tutorials when it comes to buttons, but for some reason, most of these tutorials only use hitboxes, but no actual interaction.
The button should be duplicateable, I should be able to create a blueprint I can simply drag into the level, and have it working. It doesn’t matter what the button is activating, it is only meant to give a simple bool pulse to true, nothing else.
My idea is that the character blueprint, button blueprint, and whatever is supposed to be activated is connected together in the level blueprint. I would add a referance to the player, connect it to a reference to the button, and connect that further to the thing that can be activated.
How do I go on about this? In what way can I make it efficient to place sever buttons into the level, and several objects that can be activated? How do I make the player and button communicate? How can I tell the engine what button is pressed by the player? If all of the buttons give off one signal, the entire point of several buttons is gone.
I know this might seem as a really easy question, and it probably is, but somehow I haven’t found a proper way to do this that supports several of the same objects, easy to edit and add to in the level blueprint.
It would also be great if you havea method of making it mulitplayer compatible, but if it means that I have to change evrything, it doesn’t really matter for now. If you have any questions on what the game is supposed to be like, just ask, I’m happy to give as much information as possible to get this right.
Thanks!