How to stop automatic doors from closing when one player exits but another player is still in the trigger box?

Thanks for everyone’s answers! They were all helpful. I was able to figure it out by adding actors to an array when they begin overlap and removing them when they end overlap. Then only closing the door when the length of the array = 0.