I’ve been trying to implement a countdown when the player is in the dark, and at the end of the timer, if he didn’t overlap a light, he die. I tried to copy a bit what I did with my lantern, that use a timer too for the battery, but it really doesn’t seem to work.
So, every tick, the game look if the player is overlapping. If not, the timer begin, and he have 5 seconds before the destroy actor. The overlapLight is set to true when overlappigng one of the light I have in my level, but nothing happen at all. I tried to print the string of the countdown, but it doesn’t even appear.
Any ideas ? Thanks in advance !