Hi, I want a counter each time the player touches a specific trigger box, so I have this little setup. Problem is, that it only counts to 1 (the print text only shows 1 each time I overlap). Any idea what I might be doing wrong?
Use the triggerbox collision for the overlap, Not Actor.
Also make it so only the character can overlap. As is it would count any overlaps from any geometry with collision. This includes the ground when the level is loaded.
Unfortunately this didnt work for me. The Counter stops at 1
I am not sure what the exact issue might be but I can give you some suggestions from the top of my head:
- Make sure nothing else changes Counter. You might be zeroing it somewhere else in your code - check everywhere. (better yet create a new var and see if the same happens with it)
- Try replacing the ++ macro with a simple get, +1 and set. There might be problem with getting the int reference. Even try it with +2 to catch if it actually goes through that exec line.
I’m not having an issue with it. Works exactly as it should with or without the delay. You have to fully exit the overlap for it to retrigger.