» Tue Sep 14, 2010 9:52 pm
While it sounds easy in theory, it is not so easy in practice because it's the engine that determines when an NPC is "in range" and not scripts. The best thing to do would be to lower your AI level and view distance. Otherwise you'd have to check line of sight & line of distance, both of which are heavily processor intensive and would negate any benefits of unloading NPCs when they're not needed.