SetDestroyed - ObjectReference

From Creation Kit
Jump to: navigation, search

Member of: 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

; Flag the dam as being destroyed
Dam.SetDestroyed()


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

See Also