huh when a player leaving the box why you dont just use the node IsOverlapping Actor with you player list to see if someoneelse is still inside the box.
Very good, glad it worked!
I would also suggest casting the overlapping object to the Player actor before adding or removing from the list, that way if something else overlaps… it won’t stop the door.
I have created basic automatic doors for my game that open on Event ActorBeginOverlap and then close on Event ActorEndOverlap. So when a player enters the trigger box, the doors open and when a player exits the trigger box, the doors close.
The issue is that if Player A enters the trigger box, the doors will open. Player B enters the trigger box and the doors remain open. Player A goes through the door and exits the trigger box and the doors close in Player B’s face. However, what I want is that if any player is still in the trigger box, the doors will not close even when a player exits the trigger box.
Any help with this would be really appreciated! I know there must be some way around this but I haven’t been able to figure it out yet.
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.