I see you have a lot of “on actor overlap” events with no actors hooked up? Why is that? You should be checking for a specific overlapped actor by dragging off those pins and checking if it is the actor you want to overlap the trigger (ie the player)
My map has around around 100 triggers all controlled by the level BP.
However when I try and test specific parts of the game, some triggers seem to fire for absolutely no reason at all, they’re not even in a position to get player collision.
The overall logic is basically When trigger A is selected move trigger B into position and move trigger A out of position.
Each of the triggers has a once only node attached.
What am I doing wrong, I’m tearing my hair out atm trying to figure this out.
Here’s a snippet of the LevelBP (the complete level BP is too big to picture) I’m using to control the triggers, this is repeated throughout the level bp:
i agree with what nebula said you need to be checking what is being overlapped even if you only do a cast to the character class. this will reduce the false positives from other things overlapping.
also your screenshots are very poor. they are way to zoomed out to be legible in mast cases.
To have the script from the trigger fire only when the player enters drag off the other actor oin on the begin overlap node and search for equal (==). This node will compare the overlapping actor to another actor. For the second inout pin on the equal node we want to use the player character so search for get player character and plug it in. Now drag off of the exe pin on the begin overlap and search for a branch node. Plug the red bool pin from the equal node into the branch. Now connect the true pin of the branch to the rest of your script. This setup will get the overlapping actor and compare it to the playe character and if they match then it will allow the rest of the script to run if they dont match then nothting will happen
An alternative method would be to use a cast in place of what i outlined above but it is dependant on the situation and how specific you want to be. For example if you wanted any character to be able to trigger the event then you could cast to the character class.
Hi Nebula Games thanks for that, i’m Trying to set it so that each of those overlaps are only triggered by the player character and nothing else.
How is that done exactly?
I appreciate your help massively!
Hi Thompson, thanks for your input, I had to zoom it out to that extent unfortunately as the chain in the bp is quite long and my monitor is quite small, so can’t get a decent res screen capture unfortunately!
Thanks for that Thompson but could you please provide a picture
its a really basic script so you really shouldnt need a picture but i happened to be on my pc when i saw it so here you go.
Many thanks Thompson!