wondering about loaded 3d, AI & scripts

Post » Thu Aug 29, 2013 1:50 pm

So while working on the extra spawn feature in my mod I discovered that I accidentally made an army of bandits (about 200 actors) on the other side of a hill from were I was running my test. I discovered this because each time I got close enough to the hill the game would CTD.

So I uninstalled my mod and looked to see what was on the other side of the hill.

After dropping a spell of mass destruction on them (to kill the army of bandits) then I could reload my mod and the mod would not CTD anymore.

My CORE scripts for the actors combat are conditioned not to run unless the actor's 3d is loaded. And all the other scripts (from my mod) for the actor are not to run unless they are in the LOS or a particular distance.

This also tells me that there is a limit to how many actors can run scripts before there is a CTD. I am guessing it was due to hitting the vanilla RAM limit bug.

So I am wondering, for outdoors, how far away from the player does the 3d load? Is it the same distance for the scripts/AI to run high?

I already solved my problem with spawning the army erroneously, but I would like to limit my running scripts when such actors are not engaged or in sight of the player. I do not want to use the LOS conditions for my core scripts (actors behind the player and just around corners need to run them) but if the actors 3d is loaded further away than the player can see them I would like to limit the distance.

User avatar
Makenna Nomad
 
Posts: 3391
Joined: Tue Aug 29, 2006 10:05 pm

Return to V - Skyrim