Making vampires stay indoors

Post » Sat Apr 16, 2011 3:37 pm

In the next version of my vampire mod, vampires will... dadaaa, avoid the sun. The Vampirism100 ability already has a small script running, I'll update it with the following:

1. Check if the owner is outside and it's daytime and the weather isn't stormy
2. Walk through all the door refs in the current cell
3. Get the one which is the shortest distance from the owner
4. Moveto the owner to that door, making him face it (won't bother with walk packages)
5. Make the door activated by the owner.

I know how to do all this, I'm just wondering if there's something fundamentally wrong with the procedure. Like, if the vampire will immediately run back out when they get inside, or if doors don't teleport NPCs properly when Activated. Anyone got any comments?
User avatar
Nick Jase Mason
 
Posts: 3432
Joined: Sun Jul 29, 2007 1:23 am

Return to IV - Oblivion