is the enemy always gonna attack me or is there any chance for him to fail or do anything else?
Up to you. You can program the enemies to do whatever you want.