How do you force an interior cell to unload via script?

Post » Tue Jun 19, 2012 12:58 am

I need one of my cells to force reset all (ingredients/lvl'd monsters/ clean up the dead corpses) every time the player enters a certain trigger.

Here's my script which is attached to a trigger zone:
Spoiler

Scriptname csArenaResetTriggerScript extends ObjectReference  {This will reset CSHideout03 when the player enters this area.}Cell Property Cellreset  Auto  Event OnTriggerEnter(ObjectReference akActionRef)	if(akActionRef == Game.GetPlayer()) ; Make sure only player triggers this.		Cellreset.reset()					; Resets the cell upon next load.	endifEndEvent

The above works as intended, only in order for the cell to reload EVERY time, the cell itself needs to UNLOAD too.
I can't seem to find how to do that. Any help on this please?

Thanks,

-Mush-
User avatar
cheryl wright
 
Posts: 3382
Joined: Sat Nov 25, 2006 4:43 am

Post » Mon Jun 18, 2012 2:30 pm

I achieved a similar effect using placeactoratme and disable scripts. It works for what I wanted at the moment, but had to change the layout of the room a bit to do so.
I'd still love to know of any way to force an interior cell to unload via script (not console command) please.

Thanks,
-Mush-
User avatar
michael flanigan
 
Posts: 3449
Joined: Thu Jun 14, 2007 2:33 pm


Return to V - Skyrim