My aim is to have a Portal style floor button and door sequence using class blueprints, so NO level blueprint or matinees.
So far I have a gravity gun blueprint that allows me to pick up shapes of various weights.
What I would like to do is create a button on the floor that detects weight from a cube, then have the button go down and open a sliding door. I need it to do the same in reverse if the cube is lifted back off from the button.
Anyone who has played Portal will know exactly what Iām talking about.
Create a pressure pad BP that has a box trigger on it that overlaps objects of the type your Cube is (probably WorldDynamic). The box would have to be only a handful of units higher than your pressure pad itself, so that it only triggers overlaps when your cube is really touching the pad.
On the OnBeginOverlap event for that trigger, check if the actor overlapping it is of the same class as your cube class, so that only the cube can trigger it.
If it is, check if the Weight of your cube (this would be a variable you created and set on your cube BP) is greater or equal to whatever weight is enough to activate the pressure pad (a variable on your pressure pad that you created and set as the threshold for weight).
If all of that passes, then activate a door opening event on whatever door is linked to this pressure pad (Iām assuming you know how to call events on other blueprints at this point, since you managed to create a gravity gun).
And then you just do all of that in reverse for the OnEndOverlap event of your pressure pad.