Cleaning up objects created by PlaceAtMe?

Post » Wed Jun 20, 2012 6:53 pm

So, in my mod, I have a decent amount of "PlaceAtMe" function calls. I'm pretty sure that using ref.disable() on objects I create isn't exactly the best way to clean up the messes I make, but quite frankly I'm not even sure how these references affect performance/save game size. So what I've been doing up until now is moving the ref to a marker in an empty cell I've created, killing the ref if it was an actor, and then disabling it there. I plan to be using PlaceAtMe a lot more with some upcoming features I'm planning on implementing, so I'd like to make sure I'm doing this right.

Is my current method decent enough? Should I be doing something else instead? Is it a valid option to just "purge" that cell, and can I even do that? Any input would be appreciated.
User avatar
Kristian Perez
 
Posts: 3365
Joined: Thu Aug 23, 2007 3:03 am

Post » Wed Jun 20, 2012 7:59 pm

I am interested in the answer to this also. i have been using placeatme's for my burial mod and want to know if that is a bad comm and to use. have also been using disables for the body cleanup.
User avatar
alyssa ALYSSA
 
Posts: 3382
Joined: Mon Sep 25, 2006 8:36 pm

Post » Wed Jun 20, 2012 11:20 pm

I call http://www.creationkit.com/Delete_-_ObjectReference after I disable my items. And after that, I set the value of whatever property or variable that was holding the reference to 'None'. I have no idea if it does anything though, since I don't really use it much...
User avatar
Logan Greenwood
 
Posts: 3416
Joined: Mon Jul 30, 2007 5:41 pm

Post » Thu Jun 21, 2012 1:44 am

I call http://www.creationkit.com/Delete_-_ObjectReference after I disable my items. And after that, I set the value of whatever property or variable that was holding the reference to 'None'. I have no idea if it does anything though, since I don't really use it much...
I swear that page had less useful information the last time I checked it. I'll do this, thanks.
User avatar
Steve Smith
 
Posts: 3540
Joined: Sat Jun 30, 2007 10:47 am


Return to V - Skyrim