# Adding A "Safe Zone" Inside Another Collision Box?

**URL:** <https://forums.unrealengine.com/t/adding-a-safe-zone-inside-another-collision-box/448602>\
**Category:** Blueprint\
**Tags:** overlap, collision-box, unreal-engine, UE4, Blueprint, question\
**Created:** [May 8, 2019, 7:18am UTC](https://forums.unrealengine.com/t/adding-a-safe-zone-inside-another-collision-box/448602 "2019-05-08T07:18:43Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![randenie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@randenie](https://forums.unrealengine.com/u/randenie)\
**Post date:** [May 8, 2019, 7:18am UTC](https://forums.unrealengine.com/t/adding-a-safe-zone-inside-another-collision-box/448602/1 "2019-05-08T07:18:43Z")

</div>

I have added rain to the project I’m currently working on and I turned it into acid rain. You take damage if you’re caught in the rain. Added a box collision in the surrounding particle area where you can take damage.

I was wondering if it was possible to make a sort of “safe zone” within the existing collision box that is causing damage? There will be places you can go for shelter and protect yourself from the rain.

Any help would be great!

~Randy

---

<div class="post-metadata">

**Author:** ![Lardo\_Deepdelver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lardo\_Deepdelver](https://forums.unrealengine.com/u/Lardo_Deepdelver)\
**Post date:** [May 8, 2019, 1:04pm UTC](https://forums.unrealengine.com/t/adding-a-safe-zone-inside-another-collision-box/448602/2 "2019-05-08T13:04:57Z")

</div>

You could create a Collision box that adds a “Safe State” to the player when he is overlapping and this “Safe State” is checked when you do damage from rain.

 ![276307-safezone.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/2/0/720e3e2cddc06d98decbeb67d35983197c57b04c.png)

 ![276308-noraindamage.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/5/4/2545e0f3f3b131e94ccad8f85c9cbdba0b178604.png)

---

<div class="post-metadata">

**Author:** ![Lardo\_Deepdelver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lardo\_Deepdelver](https://forums.unrealengine.com/u/Lardo_Deepdelver)\
**Post date:** [May 8, 2019, 3:51pm UTC](https://forums.unrealengine.com/t/adding-a-safe-zone-inside-another-collision-box/448602/3 "2019-05-08T15:51:20Z")

</div>

- did you add a new damage type,
- is the any damage event being called
- how do you apply your damage
- is the in safe zone being set

😛 some questions that might clarify what goes wrong

---

<div class="post-metadata">

**Author:** ![randenie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@randenie](https://forums.unrealengine.com/u/randenie)\
**Post date:** [May 8, 2019, 4:07pm UTC](https://forums.unrealengine.com/t/adding-a-safe-zone-inside-another-collision-box/448602/4 "2019-05-08T16:07:41Z")

</div>

-Damage type is AcidRain

-The damage occurs when entering the collision box.

-I have it set when entering the acid rain, it causes damage every .5 seconds.

-Made a print string to see if it does and it shows it is calling to it.

---

<div class="post-metadata">

**Author:** ![Lardo\_Deepdelver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lardo\_Deepdelver](https://forums.unrealengine.com/u/Lardo_Deepdelver)\
**Post date:** [May 8, 2019, 4:12pm UTC](https://forums.unrealengine.com/t/adding-a-safe-zone-inside-another-collision-box/448602/5 "2019-05-08T16:12:36Z")

</div>

isn’t that what you want to happen?

---

<div class="post-metadata">

**Author:** ![Lardo\_Deepdelver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lardo\_Deepdelver](https://forums.unrealengine.com/u/Lardo_Deepdelver)\
**Post date:** [May 8, 2019, 4:26pm UTC](https://forums.unrealengine.com/t/adding-a-safe-zone-inside-another-collision-box/448602/6 "2019-05-08T16:26:02Z")

</div>

How is the damage applied to your actor?

Did you reroute it through the take any damage event on your actor?

---

<div class="post-metadata">

**Author:** ![randenie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@randenie](https://forums.unrealengine.com/u/randenie)\
**Post date:** [May 8, 2019, 4:31pm UTC](https://forums.unrealengine.com/t/adding-a-safe-zone-inside-another-collision-box/448602/7 "2019-05-08T16:31:15Z")

</div>

It occurs when overlapping and calls to the character’s health to take away health if it’s over 0. It then does damage every .5 seconds by the “AcidRain” damage class.

---

<div class="post-metadata">

**Author:** ![Lardo\_Deepdelver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lardo\_Deepdelver](https://forums.unrealengine.com/u/Lardo_Deepdelver)\
**Post date:** [May 8, 2019, 4:34pm UTC](https://forums.unrealengine.com/t/adding-a-safe-zone-inside-another-collision-box/448602/8 "2019-05-08T16:34:16Z")

</div>

how do you apply the damage?  
Do you call a do damage function or do you just reduce the health every 0.5 seconds until you leave?

---

<div class="post-metadata">

**Author:** ![randenie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@randenie](https://forums.unrealengine.com/u/randenie)\
**Post date:** [May 8, 2019, 4:45pm UTC](https://forums.unrealengine.com/t/adding-a-safe-zone-inside-another-collision-box/448602/9 "2019-05-08T16:45:39Z")

</div>

It’s does a damage function and applies damage until you leave the acid rain box.

---

<div class="post-metadata">

**Author:** ![Lardo\_Deepdelver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lardo\_Deepdelver](https://forums.unrealengine.com/u/Lardo_Deepdelver)\
**Post date:** [May 8, 2019, 4:48pm UTC](https://forums.unrealengine.com/t/adding-a-safe-zone-inside-another-collision-box/448602/10 "2019-05-08T16:48:09Z")

</div>

can you make a screen shot of how that works?

In theory, you would just need to check for the safe state where you apply damage.

---

<div class="post-metadata">

**Author:** ![randenie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@randenie](https://forums.unrealengine.com/u/randenie)\
**Post date:** [May 8, 2019, 5:00pm UTC](https://forums.unrealengine.com/t/adding-a-safe-zone-inside-another-collision-box/448602/11 "2019-05-08T17:00:51Z")

</div>

Currently at work. Won’t be able to for about 8 hours. Hope you’re around then! Lol

---

<div class="post-metadata">

**Author:** ![Lardo\_Deepdelver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lardo\_Deepdelver](https://forums.unrealengine.com/u/Lardo_Deepdelver)\
**Post date:** [May 8, 2019, 5:03pm UTC](https://forums.unrealengine.com/t/adding-a-safe-zone-inside-another-collision-box/448602/12 "2019-05-08T17:03:02Z")

</div>

probably not,  
will take a lock in the morning 😛

---

<div class="post-metadata">

**Author:** ![randenie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@randenie](https://forums.unrealengine.com/u/randenie)\
**Post date:** [May 9, 2019, 1:33am UTC](https://forums.unrealengine.com/t/adding-a-safe-zone-inside-another-collision-box/448602/13 "2019-05-09T01:33:16Z")

</div>

Hey! Just letting you know that a friend and I figured it out. Thank you for your help!
