Talk:Delete - ObjectReference

From the CreationKit Wiki
Jump to navigation Jump to search

Article Information Incorrect?[edit source]

Flags this object reference as wanting to be deleted. A reference that is flagged for delete will be deleted as soon as:

  • It is no longer in a script property

My experiences seem to contradict the above (taken directly from article). I have two scripted objects. One placeholder (directs activation to copies) and the other serves as a base for PlaceAtMe copies, this base is a property of its own script and a property of the placeholder's script. It has delete called on it so its copies can get cleaned out of the game but shouldn't get deleted itself.

Event OnCellLoad()       ;cleans up remnant copies on cell load
  Delete()
Endevent

Antares (talk) 04:48, 7 October 2012 (EDT)

Were your references pre-filled into your script properties in the CK, or did they start out None and get set dynamically by a script at run-time? According to Persistence_(Papyrus) only pre-filled properties flag a reference as persistent.
taleden (talk) 2013-10-22T17:09:29 (EDT)