Adding A "Safe Zone" Inside Another Collision Box?

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

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.

-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.

  • 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

:stuck_out_tongue: some questions that might clarify what goes wrong

isn’t that what you want to happen?

How is the damage applied to your actor?

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

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.

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?

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

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

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.

probably not,
will take a lock in the morning :stuck_out_tongue:

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