I’m using the Stack-O-Bot project to create my own little project. I made a ground pound for the bot. That’s all working fine.
Now I’m working on the pressure plate, and the overlap event is setup already. I know I probably have to put something between the overlap event and the branch to make sure that the player is ground pounding before the switch is pressed, but I’m just at a loss on how to go about it.
Sorry for the dumb question. Lol. Just starting out and am super lost.
Where are you getting the “Is GroundPounding” variable in your Pressure plate bp? it should be getting sent from the bot, but I just see it unhooked. did you set up a variable in the Pressure Plate?
it should look like, “On Component begin overlap” drag a blue node off of “actor” and call a “cast to (whatever the bots name is)” and then drag blue dot off of that and “Get GroundPounding”. Connect that from your “Cast Succeeded” and that should be plugged into your branch. hopefully it works for you.
Here is the default setup for the pressure plate and it works when I walk over it with this setup, so I know it isn’t anything outside of what we’re working with in the Event Graph.
I’m trying to look, I just had to use the bathroom as realized this code is being called at the first moment of overlap, so put a variable in your bot called “on box” or mine or whatever, then do exactly what we did with the cast and, on begin over lap have the blue line coming from bot “SET ON BOX” to true. and obviously to false on end overlap. Then in your bot when you groundpound give off a branch that relies on “on box” and if its true Run a Custom event that you put into your pressure plate. what im stuck on is how you’re gonna cast to this pressure plate? is there one or a bunch of these things? if there is one its easy, but if there is a bunch its gonna not be so. Having something that has him check if he’s on one rather than the other way around is much easier.
Sweet that’s easy, if you can make the the two pressure plates different actors. after you set the “Set ON Box”(Give the variable between the two different names) thing we said earlier have the bot after it ground prounds, like after the branch that checks if groundpounding is true in your function. put a branch that says your earlier variable, IE “IS ON BOX1” and another branch that says “IS ON BOX 2” and off a true"Get actor of Class" and have it the plate that corresponds to that variable of your plates, and have the blue wire come off that and run the custom event. you know this would be way faster in discord if you wanna jump on there I could tell you a lot more.
It’s for a school assignment. I need to have the first challenge have a pressure plate door, the second will have enemies to ground pound in order to trigger the door, and the last one will have buttons and enemies to kill in order to open the door. So theoretically there will only be two buttons.
So put a trigger box on the bot itself that will then interact with the trigger on the pressure plates?
I’m sorry for the questions. The classes I’ve taken so far have all been paint by number essentially, and now they’re wanting us to create features from scratch and I’m totally lost with a lot of this stuff as nothing was actually “taught” if that makes sense.
All I was told by the instructor regarding this (I reached out to them while waiting here) was this: “On the pressure plate’s begin overlap event you can have it check if the bot’s stomp ability is active, which means you’d have to have something in BP_Bot to keep track of that. If the stomp ability is active at the time of overlap, activate the pressure plate. If stomp is not active, do nothing.”
Which is essentially what you told me to do already with the original cast, so I’m confused on why it isn’t working that way as well.