Mod:Creation Kit/SetDestroyed - ObjectReference

Member of: Mod:Creation Kit/ObjectReference Script

Sets or clears this object's destroyed flag.

Syntax
Function SetDestroyed(bool abDestroyed = true)

Parameters

 * abDestroyed: Whether the object should be destroyed or not.
 * Default: True

Return Value
None.

Examples
Dam.SetDestroyed Dam.SetDestroyed(false)
 * Flag the dam as being destroyed
 * Flag the dam as not being destroyed