# Countdown kill character inside trigger box

**URL:** <https://forums.unrealengine.com/t/countdown-kill-character-inside-trigger-box/372601>\
**Category:** Character & Animation\
**Tags:** triggerbox, unreal-engine, question, Blueprint\
**Created:** [October 6, 2016, 9:13am UTC](https://forums.unrealengine.com/t/countdown-kill-character-inside-trigger-box/372601 "2016-10-06T09:13:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ExtraTorpedo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ExtraTorpedo](https://forums.unrealengine.com/u/ExtraTorpedo)\
**Post date:** [October 6, 2016, 9:13am UTC](https://forums.unrealengine.com/t/countdown-kill-character-inside-trigger-box/372601/1 "2016-10-06T09:13:10Z")

</div>

Hi!

I was wondering if anyone of you know about a simple solution to kill a player if he/she is inside the trigger box, when a countdown hits zero? Here is the blueprint that I have so far. Everything is working except for the fact the the character dies wether he/she is or is not inside the box.

Here is my prototype BP:

[https://postimg.org/image/ii9ztp7hn/](https://postimg.org/image/ii9ztp7hn/)

[https://postimg.org/image/ahmk113o3/](https://postimg.org/image/ahmk113o3/)

All the best!

---

<div class="post-metadata">

**Author:** ![Koaku](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Koaku](https://forums.unrealengine.com/u/Koaku)\
**Post date:** [October 6, 2016, 9:30am UTC](https://forums.unrealengine.com/t/countdown-kill-character-inside-trigger-box/372601/2 "2016-10-06T09:30:16Z")

</div>

Are you using the engines default kill zone?

---

<div class="post-metadata">

**Author:** ![ExtraTorpedo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ExtraTorpedo](https://forums.unrealengine.com/u/ExtraTorpedo)\
**Post date:** [October 6, 2016, 1:32pm UTC](https://forums.unrealengine.com/t/countdown-kill-character-inside-trigger-box/372601/3 "2016-10-06T13:32:26Z")

</div>

Nope, it is not connected to the default kill zone.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [October 7, 2016, 2:13pm UTC](https://forums.unrealengine.com/t/countdown-kill-character-inside-trigger-box/372601/4 "2016-10-07T14:13:24Z")

</div>

Hi ExtraTorpedo,

Try something like this:

 ![109995-killbox.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/4/e/a4e04388a61a7c3c1306bfedc890d04511a65f86.png)

Basically what I do here is set a timer that counts up/down to the destroy action, if the player leaves the overlap, it resets the int counting and clears the timer, preventing it from continuing to count down/up. Once the player steps back into it it will start over again.

---

<div class="post-metadata">

**Author:** ![ExtraTorpedo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ExtraTorpedo](https://forums.unrealengine.com/u/ExtraTorpedo)\
**Post date:** [October 9, 2016, 8:55am UTC](https://forums.unrealengine.com/t/countdown-kill-character-inside-trigger-box/372601/5 "2016-10-09T08:55:51Z")

</div>

Thanks for your response and sorry for a late reply. I’ve been away all weekend and gonna try this when I get home. I’ll reply as soon as I have tested it, looks promising.
