Here is what I have, 2 buttons and a door.
Once the player presses either button the door becomes active.
I now need it to disable the other button so that it cannot be pressed.
I however will have a number of these buttons and doors which I want to be separate so they cannot be activated by one of the many buttons located around the map.
Any ideas, i figure it will use referencing blueprints but i don’t want the 1 button to activate all the doors, only the 2 buttons within the room which are corresponding to that door.
Hello,
If you use 3 blueprints, you can store your buttons in your door bp and your door in your buttons. Then when you activate one you cast to the door to deactivate the other (or both, depending what exactly you want)
If you use one blueprint, you create your interacting system in and you use children to set locations in your level.
I have 3 separate blue prints,
Button A
Button B
Door
I just have no idea how to link these together… I have a feeling once I do it will let any button A activate all the doors which I don’t want to happen.
First one is your buttons and door blueprint. Buttons have a box component, 3 variables ( 1 buttonb, 1 door and 1 activated ) and the activating event where we set activated on both buttons and where we activate the door. Door only have a mesh and a custom event (in which i set location of mesh to see it working. This is where you use a timeline to slide your door)
Second one is level blueprint with a sequence with 2 ways to set your variables in your level : first one is on spawn, second is with items set in level before start.
Edit : If you collapse the spawn to function, you’ll just have to define the 3 transforms in inputs and you’ll can spawn as much as door and buttons as you want without having any trouble. Same for other but you’ll have to define the items as inputs.
Edit 2 : If it seems too much for you, you can then try to set your buttons and your door in same blueprint with the same mechanic and set locations of components in level or in a function activated on spawn.
You can’t find them because you have to create the variables in your blueprints first to be able to drag them.
door is a bp door variable and button1 and button2 are bp button variables. Once you’ll have create them, compile, save and then you’ll can drag them and set your system.
Do you know any tutorials (I have looked over quite a few but none show how to get this set node…?", I have not got a clue how to get this target for the boolean and for the “blue” set node.
Where you select the type of the variable (boolean for your conditions and name of the blueprint for door and buttons)
and that’s all.
Then or you spawn your blueprint or you select the blueprints you want to link in your level and add a reference in your level blueprint.
check if your variables are your door blueprint and button blueprint (if you selected mesh for exemple if names are close) then if your blueprints are in your level, select them and in your event graph right click and add reference to selected levels. Or if you spawn them spawnactor. And from the blue wire, right click and type the name of the variable. (if you change values, don’t forget to compile before trying right click)
4.5 too. You may have miss something somewhere. Is your context sensitive checked ?
Edit : To see if your variables are ok : from your variable buttonb in your button, you can drag a get / set variable door and a get / set another buttonb ^^
Try this : Put a button blueprint in your level. Select it. open your level map. do right click and add reference to.
From this node, drag a wire and type door. you’ll have your get door and set door.