Reseting Cell Items to Original Location

Post » Sun Sep 19, 2010 4:10 am

I was wondering if there is any function to reset items in a cell to their original place. Like say you took a bunch of books off a bookshelf, would there be any way to restore the items then back onto that bookshelf through function or console. I looked up both the ResestInterior and RevertWorld commands would either of these work? Thanks in advance.
User avatar
Marie
 
Posts: 3405
Joined: Thu Jun 29, 2006 12:05 am

Post » Sun Sep 19, 2010 6:52 am

ResetInterior is indeed the one you want. For it to work, you have to not be in the cell you want to reset. Then type in the console:

resetinterior cellnamegoeshere

and press Enter. That's it!
User avatar
Jessica Nash
 
Posts: 3424
Joined: Tue Dec 19, 2006 10:18 pm

Post » Sun Sep 19, 2010 5:19 pm

ResetInterior is indeed the one you want. For it to work, you have to not be in the cell you want to reset. Then type in the console:

resetinterior cellnamegoeshere

and press Enter. That's it!


Not to hi-jack your thread, but its a bit related too.

Would that work for resetting traps, npc's, and other activators?
User avatar
Gaelle Courant
 
Posts: 3465
Joined: Fri Apr 06, 2007 11:06 pm

Post » Sun Sep 19, 2010 6:26 pm

Not to hi-jack your thread, but its a bit related too.

Would that work for resetting traps, npc's, and other activators?


It depends on how they are scripted, for traps and activators, but many of them do reset with the cell they are in. For NPCs, yes, as long as they are set to respawn.
User avatar
Dean
 
Posts: 3438
Joined: Fri Jul 27, 2007 4:58 pm

Post » Sun Sep 19, 2010 5:53 pm

Persistent references keep their state. ResetInterior is simulating the 3-day wait.

So if you unlocked a door that was persistent, it stays unlocked, for example. For traps, it's hard to say. Most traps are persistent so that the trigger can link to the effect, but they reset by a timer in their script, and that's usually short enough for leaving the cell, typing in the console command, and re-entering to have the trap reset itself. Or they may have a test on the player not being in the cell for the reset, so again, you'll get the desired effect. NPC's may also have AI packages that have them in different cells at different times, so that may influence what you see happening. If there's a different AI package due when you re-enter, the NPC may have left to do something else.
User avatar
Tarka
 
Posts: 3430
Joined: Sun Jun 10, 2007 9:22 pm


Return to IV - Oblivion