Countdown on pawn possesed

hi, does anyone here know how to apply a countdown to work on pawn possessed I need it for the game I am making.

just use the event possessed node. it will be called when the character is possessed by a controller.

242576-capture.png

ThompsonN13 thank you

Have an integer variable named MaxCountDown.

In the example below, i made the total wait time MaxCountDown * 100 ms. If you want your MaxCountDown to be in seconds, change the time pin to “1”.

Create a custom event, in my example named CountDownPossession. And create the built-in node “Event Possessed”. When possessed, we want the countdown ticks to start, so we do exactly that. We set a timer to our custom event that makes it tick every {time} intervals after timer is set.

Every tick, our custom event is decrementing the count down variable, and checking if it is <= 0. If it is, you can do what you want to do when counter finishes.

If you want to count up, just have the variable set to 0 by default and increment every tick.

When you are done with your count down and if you dont want the CountDownPossession to fire continously, you can use the “Return Value” of the node “Set timer by Event” and do “Clear and Invalidate Timer by Handle”.

Hope this helps!