How to increase counter value for when you have entered a trigger volume?

What kind of counter? Do you simply want a variable that increases every time you overlap?

Hi, I’m currently trying to implement a counter for when you have entered an area, which in my case is my wooden cabin that I’ve created. I want a counter that will count up if you enter a trigger volume, but I’m unsure on how to accomplish this…I was wondering if anyone could help me with this? I know this is too much to ask, but would you be able to provide visual aid…I’m relatively new at blueprint scripting.

A counter that will prompt the player, which I’m guessing can be done using UMG. Basically, if you enter the volume it will increase the value of the counter , but then the trigger will be destroyed straight afterwards. I want the value to be showed on the HUD.

Prompt the player to do what?

Still not understanding I think. Is this what you want?

So, you want a counter to add 1 every time you “open the door”, and you also want it to say “Doors Open”?

Sorry, I’m having a tough time visualizing what you’re looking to do haha

This is indeed what I want, but I want there to be text, “Doors Open”. However, I’m guessing this can be accomplished by using a draw text node…? I just don’t know how to do the scripting for the counter that’s all. :frowning:

If you could provide images on how you did the counter then that would be awesome! Thank you for your help! :slight_smile:

Okay, so you need to find switches in-order to open doors, but I want a counter that will prompt the player with how many doors they have left to open. I want a counter that will count down from a set number when you have entered the trigger volume. I’m going to place the trigger volume on the other side of the door, so when the player has entered the other side it will be counted as the area’s been discovered. Instead of having text saying, “doors remaining”, I think it will be make sense to have, “areas left to be discovered” or something like that. Does that make sense?

Here’s how to make the counter

First, I created a variable in my Player BP that stores the counter number.

Then, in my Trigger Box, I tell it to increase the variable by one every time the player overlaps.

Finally, In my HUD BP, I create an editable text box and bound it to the player counter variable.

Done!

Yeah I do kinda get it. That should be easy to do pretty much the same way I made the counter. I gave ya an answer on how to do that… GL :slight_smile:

I can’t believe how easy that was. :confused: Thank you for your help!

Hi guys! I guess I arrive to this a too late but I have a question about it.

i also want to make the counter (instead of with a triggerbox it will work with a button click). My question is: how did you build everything that it’s set after the “Cast to player” node in the first image.

I mean, I don’t know how to tell it to increase the variable by one every time I press my button.

Thanks in advance!!!