What's the best or basic way to set up safe zone?

So basically, how would I go about of setting up an area as a safe zone where the enemy AI will not enter or harm the player? Would I use a trigger box with collision of some sort? Or just use the volume boxes for the AI to stay within that, but leave a gap where I want the safe zone to be for the player?

Any tips or suggestions to help achieve this would also be appreciated.

You could. Player enters box → tell all AIs not to attack, by setting a bool maybe


If the AI is using navmesh, you can use a modifier:

But if they wield bows and have arrows, you’re screwed :wink:

Sweet thanks! The enemies won’t have bows Haha, I have an idea for that, just wasn’t sure on how to do this part for the safe area.