I agree completely. At the bare minimum they should move their base movement in a random direction when being stealth attacked. If it wouldn’t require to much additional coding, they could give them a wisdom or intelligence check to determine if the monster can ascertain the correct direction the shot came from.

I mean come on, if someone gets shot with an arrow, it doesn’t take Elminster to figure out what direction it came from based on the way the arrow is stuck in ya.