SetDestroyed - ObjectReference

From Creation Kit
Revision as of 2010-08-06T13:58:59 by Jlundin (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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