Clearing a script on death

Post » Wed Jun 20, 2012 7:00 am

Just wondering how and if there is a need to delete or ignore a script on an actor once the actor is dead?

I know they could be resurrected, so should the script be deleted?

If the script is not deleted, will it cause stress on memory?
User avatar
W E I R D
 
Posts: 3496
Joined: Tue Mar 20, 2007 10:08 am

Post » Tue Jun 19, 2012 3:56 pm

I don't think it's possible to delete or unattach a script, but you could use a http://www.creationkit.com/States_(Papyrus) to prevent any code from running once it's dead if you want.

If you've set it up to use events responsibly (so it's not receiving frequent updates when it doesn't need to be, for example) then you shouldn't need to worry about it.

Cipscis
User avatar
Rob Smith
 
Posts: 3424
Joined: Wed Oct 03, 2007 5:30 pm

Post » Tue Jun 19, 2012 10:35 pm

Ok, thank you! :-)

I suppose the script won't cause too much trouble unless a dead actor gets hit... or has equipment taken off. I guess I'm just more concerned with all of the variables/properties taking up memory.
User avatar
The Time Car
 
Posts: 3435
Joined: Sat Oct 27, 2007 7:13 pm

Post » Tue Jun 19, 2012 11:09 pm

If you're worried about that, you might want to take a look at what the Creation Kit Wiki has to say about http://www.creationkit.com/Persistence_(Papyrus).

Cipscis
User avatar
Tarka
 
Posts: 3430
Joined: Sun Jun 10, 2007 9:22 pm


Return to V - Skyrim