SetDestroyed

From the CreationKit Wiki
Revision as of 14:36, 11 November 2011 by imported>Scornett-Bot (Script running global find and replace: Category:Console Commands for Category: Console Functions)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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)