Actual Question
I pretty much just want a way to count how many times an actor enters a trigger, and the game to then check that and do something depending on how many times that trigger has been activated.
Like OnActorBeingOverlapped, add to an integer, then check if its number is the same as 1 or 2 or 3 etc, and then branch into a true or false node.
I’m still figuring out this blueprint stuff so if you could show me an image so I can see what nodes I need to use that would be excellent.
Context
In the game the player needs to move to platform 1, then 2, then the door will open then they can go to the exit.
I want a more “reactive” experience however, where the game reacts when the player steps on the wrong platform, and a different reaction depending on how many times they have done so.
From here is just context on what exactly I want to do
Platform 1
You are directed to stand on a platform marked “1”, teleporting onto it plays and audio clip telling you to now move to platform “2”. Teleporting off platform “1” and back onto it will play another audio clip which will tell you this is not platoform “2” and you have gone back onto platform “1”. teleporting onto platform 1 again will now no longer do anything.
If the lighting has changed due to the player standing on platform 2 to many times beforehand I want platform 1 to check this and change the lighting back if need be, I don’t want to the code for the lighting, just room/a place for me to add it.
Platform 2
The player will teleport onto platform 2, if they have teleported onto platform 1 previously an audio clip will play and a door will open. If they have not been on top of platform 1, an audio clip will play telling you this is platform 2, not 1. Moving onto platform 2 again without going to platform 1 will now turn all the lights off and sine a spotlight onto platform 1 and an audio clip will play. Once the player has teleported onto platform 1 the lights will return to normal. Then the play just needs to return the platform 2 and the door to the exit will open.
Now here is a diagram of how I’m trying to get things to play out.