The enemies can have their own targets; simply make them scan around, detecting the status of that flag for all the entities that are near them.