Thanks, if you are interested the AI simply calculates the angle between the player and the nearest enemy and shoots in that direction, so if you turn around the player with a gun you can easily defeat him :)