SetDestroyed

From the CreationKit Wiki
Jump to navigation Jump to search

SetDestroyed flags the calling object as 'Destroyed'. Objects that have been Destroyed no longer present mouseover text and cannot be activated.

Note that they still exist, and continue to render and process events normally - they are not Disabled or Deleted, and their visual Destruction State, if any, is unaffected.

Syntax[edit | edit source]

SetDestroyed 1 ;Sets the Destroyed Flag. Object is destroyed.
SetDestroyed 0 ;Clears the Destroyed Flag. Object is no longer destroyed and resumes normal operation.

Papyrus Version[edit | edit source]

ObjectReference.SetDestroyed (Papyrus)