im trying to make my "push boxes" which keep an enemy within an area (the right push box tells the enemy to go left when reaching the end of the area stopping it from leaving the area) destroy them selves when there are no enemies around. what would be the easiest way to do this?
Why do you need them to destroy themselves? That isn't really necessary. It all depends on how you have the enemies coded - built in movements or custom?
Just make an active object and place it where you want the enemies to stop/change directions.