Keep Player alive but everything else destroyed

Hi, is there a way to destroy all actors inside the volume box but keep the player character still alive when getting in the volume box or when getting out of it.

In the box blueprint you could set up something like this

You have a reference to your player and you compare it to whatever triggered the box overlap event, so if they are equal, don’t destroy it, if they are different then destroy the other actor.