I believe Alaster Wolf is correct.
I was playing around with the Dragon Combat script from the vault, and was having the dragon spawn in wyrmlings every x heartbeats. But the wyrmlings were attacking any PC in the area, regardless of distance. So I tinkered, and yes, I believe I used a distance check that worked.
However, I also believe I lost that change on a computer crash. But I don't think it was that difficult to make, and I am terrible with scripting. So if you still need it, let me know, I can try to recreate it. I haven't gotten around to adding the dragon combat stuff back into my mod yet, but as I said, I don't recall it taking too long, a few hours at best.